Hi,
Was wondering if someone could help with the following problem? I want to execute a shell command but i think there is a problem with the brackets because i get a parse error. The command works from the command line but not through PHP. Any ideas?
$output = shell_exec('ypcat passwd | awk '{if (substr($0,1,2)=="sh") print}'');
Thanks
00229257
Was wondering if someone could help with the following problem? I want to execute a shell command but i think there is a problem with the brackets because i get a parse error. The command works from the command line but not through PHP. Any ideas?
$output = shell_exec('ypcat passwd | awk '{if (substr($0,1,2)=="sh") print}'');
Thanks
00229257