View Single Post
  #7 (permalink)  
Old 06-27-2008, 02:10 AM
sarel sarel is offline
Novice
Join Date: Jun 2008
Posts: 12
iTrader: (0)
sarel is on a distinguished road
Icon5


No sorry that didn't work

but no worries I got it working, it was those devilish quotes as expected.

so double quotes are required for the shell command and to get them attached on the variables when echo-ing is done by doing so:

\"$variable\"

so place the entire string into $cmd
then
echo the shell+$cmd like so:

echo "<pre>".shell_exec($cmd)."</pre>";

yahooooooooooooooooooooooo aaaaaaaaaaaaggghhhh

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!