When I compare the $var1 and $var2 it's always FALSE...
But in the print it's the same things...
Can we compare a VAR that came from a CURL???
Need help!
<?
$lapage1 = curl_init("http://192.168.0.108:85/online/post1.php?string=test");
curl_setopt($lapage1, CURLOPT_RETURNTRANSFER, 1);
$var1 = curl_exec($lapage1);
curl_close($lapage1);
$lapage2 = curl_init("http://192.168.0.134/kb/post1.php?string=test");
curl_setopt($lapage2, CURLOPT_RETURNTRANSFER, 1);
$var2 = curl_exec($lapage2);
curl_close($lapage2);
print("$var1<br>$var2<br>");
if($var1==$var2)
{
print("$var1<br>$var2");
$file = fopen("compare.txt", "a");
fputs($file, "$var1$var2\t=\tGOOD\n");
fclose($file);
}
else print("ERREUR DE COMPARAISON");
?>