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.