note 82135 rejected from function.stream-get-contents by nlopess

From: Date: Sun, 30 Mar 2008 11:27:29 +0000
Subject: note 82135 rejected from function.stream-get-contents by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-137748@lists.php.net to get a copy of this message
Note Submitter: alcoutinhor at gmail dot com ---- It's really strange... I've been using the stream_get_contents like bellow: $urlbusca="http://www.uol.com.br"; while($dado = mysql_fetch_array($result)) { if($dado["urltxt"] == $urlbusca){ echo "registro existente"; echo stream_get_contents(fopen("teste.html",'r')); exit(); } } $verif = @fopen($urlbusca,'r'); if($verif){ $conteudo = stream_get_contents($verif);} else { echo "The page doesn't exist"; exit(); } $sql = "INSERT INTO url (urldb,urltxt) VALUES ('$conteudo','$urlbusca')"; mysql_query($sql) OR die(mysql_error()); mysql_close($link); ?> It keeps me showing the message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'auto' } window.open(url,janela,"toolbar=no,location=no, directories=no,status=no,' at line 1 The weird thing is that it was working and then stoped. If I try to use fread() I get the same error. Does anyone have a clue about that?

« previous php.notes (#137748) next »