Change xscript to script… and it will return Yes!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<?php $ch = curl_init("http://aq.gthex.co.uk:10000"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $text = curl_exec($ch); $test = strpos($text, "xscript"); if ($test==false) { echo "No"; } else { echo "Yes"; } ?> |