Results 1 to 4 of 4
Thread: php explode not reading the url
Nov 23, 2006, 11:05 #1
php explode not reading the url
I have an html file that pulls info from a php file in another directory using 'require: etc'.
the url looks like this...
the php file is like this.
$h1 = str_replace("_"," ",$array);
It will read the info when they two files are in the same directory, but when I seperate them, the php file won't read the url at all. Like... if I echo a random word, it will display on the html page so I know that I linked the two correctly.
Nov 23, 2006, 11:51 #2
- Join Date
- Oct 2006
- France, deep rural.
- 17 Post(s)
- 1 Thread(s)
to have a look at whats going on, perhaps $array is empty.
Nov 23, 2006, 12:43 #3
that's the thing.. it is empty and I don't know why.
Nov 23, 2006, 13:01 #4
well i fixed that problem by making a path_info.php file and placing it in the main directory... now it says I can't connect to my mysql server for some reason... :'(
is there smoething that I need to change when connecting to mysql from a diff directory?