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

PHP Server Side Scripting Forum

    
Running a shell script from within PHP
Niakie




msg:1286278
 7:48 am on May 5, 2002 (gmt 0)

I am trying to execute a shell script by utilizing exec or system functions in PHP... I have successfully run a ls command, but am unable to get my shell script to work (we can run the script with no problems through telnet)... Any assistance would be greatly appreciated!

 

starec




msg:1286279
 7:57 am on May 5, 2002 (gmt 0)

The most likely cause of your problem are insufficient privileges of the php user.
When you run the script from the telnet, are you running it as the same user as the php user?
Make sure that the php user has sufficient rights to read/write/execute or whatever your script is doing.

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved