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
Post a Comment