Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 3rd July 2009, 08:46
AnilKumar AnilKumar is offline
Junior Member
 
Join Date: Sep 2008
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via Yahoo to AnilKumar
Default How to run shell_exex command at web site using php code.

Hello,

Can anyone suggest how to overcome from this one.

Shell_exec is perfectly run in the localhost,
when i want to run that command at the web server, that is not executed.

chmod 7777 -R \public\test\sleepingbaby.jpg

presently that file has 0644 permission.

i want to change that file permission to full access that is 7777.

$cmd = "chmod 7777 -R \public\test\sleepingbaby.jpg";
$res=shell_exec ($cmd);
when i echo $res; then that not return any values.


Please give any solution for it.

Anil Kumar.
http://www.anil2u.info

Last edited by AnilKumar; 15th April 2010 at 19:34.
Reply With Quote
The Following User Says Thank You to AnilKumar For This Useful Post:
ffs123 (4th November 2011)
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 14:06
Really Simple DNS Question andysm849 Server Operation 4 21st October 2008 00:32
network issues now it says "401 The web site is blocked by administrator" Check General 3 26th February 2008 15:22
Sites are up, but none show in ispconfig Check Installation/Configuration 10 5th February 2008 12:33
Power failiure Wwamphyri General 6 24th February 2007 22:21


All times are GMT +2. The time now is 18:34.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.