php path issue, solution needed -


the following code works when place script in root

if (file_exists("pics/2012/blackhall primary/" . $_files["file"]["name"]))       {       echo $_files["file"]["name"] . " exists. ";       } 

but if move script folder /teacher/ no longer works.

i thought make path ~/pics/2012/blackhall primary/ work does.

any ideas? thanks

use / @ beginning indicate root folder original php file located

if (file_exists("/pics/2012/blackhall primary/" . $_files["file"]["name"])) {   echo $_files["file"]["name"] . " exists. "; } 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -