I know this is a simple question, but I can’t for the life of me get it to work. If I log in to my server via SSH (linux) and type in : /home/username/public_html/x/foo.cgi f=subscribe l=list e=abcd@gmail.com the script runs perfectly. However, if I try to run the script via PHP by the likes of : shell_exec("/home/username/public_html/x/foo.cgi f=subscribe l=list e=abcd@gmail.com"); nothing happens.
Can anyone point me in the right direction?
Thanks ahead of time!
Tre
“Nothing happens” isn’t a very descriptive error message. Nevertheless, three possibilities come to mind:
Take your pick. Check your logs. Make sure you don’t leave any holes available for attackers to get in.