I don't know how to search for it, so I'm asking you here.
Situation is the following:
Got a vServer with root. Apache, PHP5, MySQL installed and running.
Now I have an index.php where I want to include 'config.php';. Simple thing!
In the config.php I have a variable like $url = 'http://xxxxxxx';, but I cannot access it in the index.php. There's just an empty Array, when I print_r(parse_url($url)); it.
The curious thing is, when I'm connected with ssh to the server and run php index.php, the output is the whole array as expected.
Do you have any idea?!
includeto require. The only thing I can think of that might be causing that is your included file not being found.requiredid you get a message saying it couldn't find the file (and so didn't work)? Or did it try to run, but still displayed an empty array for$url?display_errors), so the whole site isnt loading, when Irequirea not existing file. Need to fix it later when I'm at home.