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

Glib GIOChannel -

jsp - java.sql.SQLException: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1 -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -