Forum Moderators: coopster

Message Too Old, No Replies

Include another Index PHP

         

Ahkamden

8:37 pm on Jan 8, 2010 (gmt 0)

10+ Year Member



I'm running a main CMS, along with another script. The script runs everything through it's index.php. I want to be able to call information from the script into the main CMS.

Does anyone know what will happen if I include the index.php it's in a different folder. The contents of the php files should be completely different.

TheMadScientist

2:24 am on Jan 9, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I really don't understand the question...
Including a file is basically including a file.
PHP doesn't care what it's called... index.php, foo.php, blah.php

There's really no telling what will happen, except either it works and runs as expected, or it doesn't and you need to change something in one of them to make it work... Not too many other options or results to be expected there and there's really no way for any of us to answer the question without seeing both files and trying it for ourselves.