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?

آیا این پاسخ به شما کمک کرد؟

 پرینت این مقاله

در همین زمینه

PHP - MySQL Select Help

Posted by HostRefugee-Vince, 03-19-2007, 05:25 AMHi, I have a populated database with the date...

PHP bug? PHP can't resolve domains, server can..

Posted by Drifter13, 07-23-2007, 10:51 PMHello fellow techs, I'm having a strange problem. My...

Released Sql Server 2008 Express without SSMSE 08

Posted by IceDog, 08-18-2008, 12:27 AMI'm sure most of you know that they released the Sql Server...

Hosting Related Press Releases

Posted by SoftWareRevue, 04-29-2009, 10:30 AM Post your press release for the WHT community...

WHM/apache problems

Posted by madpato, 06-26-2008, 11:08 AMHi I've started a similar topic once but couldnt...