ok... im not quite sure how to describe my problem.
i have a php script that runs through my entire php site and writes the
resulting output to html files. this is necessary as the nature of the
hosting available to me for this particular page prohibits me from using
php/mysql as i would like.
my script works simply by using output buffers and an include
the relevant section of code is as follows:
ob_start();
include($source .$pagename);
$page_buffer = ob_get_contents ();
ob_end_clean();
i was wondering if there is a way i can do this without using the include,
because the script only works when it is in the same directory as the site.
this arrangement does not suit me, as i would rather be able to store the
script in a separate folder.
i have a php script that runs through my entire php site and writes the
resulting output to html files. this is necessary as the nature of the
hosting available to me for this particular page prohibits me from using
php/mysql as i would like.
my script works simply by using output buffers and an include
the relevant section of code is as follows:
ob_start();
include($source .$pagename);
$page_buffer = ob_get_contents ();
ob_end_clean();
i was wondering if there is a way i can do this without using the include,
because the script only works when it is in the same directory as the site.
this arrangement does not suit me, as i would rather be able to store the
script in a separate folder.
Comment