PHP System commands - TechRepublic
Question
July 16, 2009 at 12:23 PM
dr.engnr

PHP System commands

by dr.engnr . Updated 16 years, 12 months ago

I’m trying to execute the following system commands throught php:

system(“tracert -d 4.2.2.2 | grep “ms” | gawk “{print ($2+$4+$6)/3 \”,\” \”http://who-is.net/php-nslookup.php?host=\”$8\”^&submit=ReverseIP\” \”,\” \”Window2\”}” >> trace.txt”);

i’m getting an ‘invalid syntax’ error. It seems to have to do with the quotes, but they’re necessary for the command. Any help is appreciated.

thanks.

This discussion is locked

All Comments