Hello there.
I'm trying to write a script that will open a page (full contents of a html page) within a php script. The point of this is to make a php code that will display menu items to create a "frameless" version of a site. I started off using just a simple open file, while (!eof) print out each line of data. Works fine around javascript and html in page (printing it out as a new web page).
Ok, the problem that I'm having is that it doesn't seem to be able to handle a page if it contains php scripts within it. It just seems to print out the php code as plain text. I don't really want to use .inc files either for storing the php code, so I'm not too sure how to work around this. Can't use frames for this either, as that would sort of defeat the whole point.
Cheers.
-Andrew
I'm trying to write a script that will open a page (full contents of a html page) within a php script. The point of this is to make a php code that will display menu items to create a "frameless" version of a site. I started off using just a simple open file, while (!eof) print out each line of data. Works fine around javascript and html in page (printing it out as a new web page).
Ok, the problem that I'm having is that it doesn't seem to be able to handle a page if it contains php scripts within it. It just seems to print out the php code as plain text. I don't really want to use .inc files either for storing the php code, so I'm not too sure how to work around this. Can't use frames for this either, as that would sort of defeat the whole point.
Cheers.
-Andrew