Welcome to WebmasterWorld Guest from 54.226.246.160

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

exec, problem with working directory

     

dev_guy13

4:31 pm on May 14, 2013 (gmt 0)



exec.php inside D:/files/
exec("D:/files/menu/pdf/".$name.".bat", $output);

And
print_r($output);


returns

D:/files



If I place exec.php inside pdf folder, everything woks fine.

But not outside even if I provide the absolute path. etc...

Appreciate your help.

rainborick

6:55 pm on May 14, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It could be that your .bat script requires or assumes a different current working directory.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month