View Single Post
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.


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.

Last edited by AnilKumar; 15th April 2010 at 19:34.
Reply With Quote
Sponsored Links