homepage Welcome to WebmasterWorld Guest from 54.167.182.201
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
exec, problem with working directory
dev_guy13



 
Msg#: 4574097 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4574097 posted 6:55 pm on May 14, 2013 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved