Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Included files don't parse their PHP naitsirhc26 msg:3674621 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.
<?php $content = array("http://file3.php", "http://file2.php", "http://file1.php"); shuffle($content); echo file_get_contents($content); ?> ---------------------------
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!
naitsirhc26 msg:3674687 9:29 am on Jun 14, 2008 (gmt 0)
Figured out the problem. Thanks! eelixduppy msg:3675253 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.