Page 1 of 1
Unable to open path
Posted: Sun Mar 19, 2006 5:39 pm
by $var
Code: Select all
$path = "http://www.londonindie.com/imi/band/".$ID";
$dir_handle = @opendir($path) or die("Unable to open $path");
i get the or die.
this very simple set of commands does not appear to be working on my system.
it echos the proper ID, and the directory exists, and has the correct permissions.
when i copy and paste the parsed path, it's fine going there in a browser.
i have tried using [DOCUMENT_ROOT] too... and it has a different error all together. Resource unavailable.
any ideas?
Posted: Sun Mar 19, 2006 7:08 pm
by waradmin
Your code is wrong there are too many quotes you need to close the second pair.
You have
Code: Select all
$path = "http://www.londonindie.com/imi/band/".$ID";
It needs to be
Code: Select all
$path = "http://www.londonindie.com/imi/band/". $ID ."";
or
Code: Select all
$path = "http://www.londonindie.com/imi/band/".$ID.;
Posted: Sun Mar 19, 2006 8:37 pm
by feyd
waradmin's last option has a parse error.
Posted: Sun Mar 19, 2006 10:07 pm
by waradmin
waradmin's last option has a parse error.
Sorry bout that I just typed up two I thought may work, I didnt have time to test them.