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

Question about suspending an account

Posted by junglecat, 06-26-2008, 05:00 PMI have WHM 11.23.0 cPanel 11.23.3-R25068 FEDORA 4 i686...

Connecting Domain to Dedicated Server?

Posted by SaintGTR, 04-21-2009, 01:28 PMI have a dedicated server and a domain I bought from...

Best PHP Editor ?

Posted by SunShellHosting, 03-01-2010, 12:58 PMHi there! I was wondering, what is the best php...

Genius-hosting??

Posted by Luminance, 09-03-2002, 06:13 PMHello guys, Is there any other company comparable to...

How to: secure yourself with (( cgitelnet.pl ))

Posted by X-x-X, 05-04-2007, 09:39 PMIt’s very important thing [URL removed] A hacker use...