homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Included files don't parse their PHP

 5:01 am on Jun 14, 2008 (gmt 0)

Okay - so I'm using the following code to rotate a certain PHP file on my home page.

$content = array("http://file3.php", "http://file2.php", "http://file1.php");
echo file_get_contents($content[0]);

Why is it that the PHP scripting on the included files DOES NOT get parsed? When I view the main page of my site - the source code - I see the PHP that SHOULD HAVE been parsed - but is just plain, raw php. I need a bit of help with this. Am I calling the .php files incorrectly - thus allowing them not to be parsed before being included? Thanks!



 9:29 am on Jun 14, 2008 (gmt 0)

Figured out the problem. Thanks!


 1:53 pm on Jun 15, 2008 (gmt 0)

Glad you resolved your issue. I'm sure you found that you should be using the full URL, ie. http://www.example.com/script.php for the include.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved