A rather strange PHP error

Posted by StueyB, 01-10-2008, 06:48 AM
Hi Everyone, I'm hoping someone can help me here as I have a rather strange problem and I have spent days (no joking) trying to figure it out. I have a script that generates sets of new pages every day. It basically takes a template, and reads in new links and hyperlinked images from a file and exports it to a new file that people can see (100bestsites.html). Embedded in this file is a php include to 3 files, top.php, trade.php and bottom.php. All these relate to banners. An example content of top.php is similar to new alt tag for whatever Now the pages themselves are ok, and work for the most part but they wont parse the following (ie if you open firefox, all the following appears in pink) Also the other php code in there also appears in pink and hasn't been executed. This site is on dreamhost. It used to work on the previous semi dedi server before, honest! I have tried it on php5 and php4 but it still refuses to work It's as if it refuses to parse any php in the new outputed html document to pick up these files. I don't get any error messages either. Any ideas?

Posted by isurus, 01-10-2008, 09:43 AM
Is the server configured to parse .html files as though they were .php files? Have you tested this using a small test case rather than your full script? Have you tried tweaking your script so that it outputs a .php file and seeing whether that works? What are the permissions on the files that your script creates?

Was this answer helpful?

 Print this Article

Also Read

(C++)Displaying a char array in a CLI form

Posted by Die4Ever, 01-11-2008, 05:15 PMIt's my first time using Windows Forms, and I'm trying to...

worry about hidden Hostname.how ?

Posted by mixmox, 04-19-2009, 12:49 PMhello. when i use Hostname / Reverse IP Lookup and test it...

pf Rule Question

Posted by fog, 01-13-2008, 07:35 PMCan someone tell me what's wrong with the following? (Besides...

Have you succeeded in using mod_auth_mysql with AES crypt?

Posted by ImageLogic, 02-09-2011, 10:04 PMIf you've been fortunate enough to have made AES...

Data Mirroring Software (Windows)

Posted by ServerFarmer, 03-28-2008, 07:22 PMWhat are some of the most popular data mirror...