note 82135 added to function.stream-get-contents
| From: | alcoutinhor at gmail dot com | Date: | Fri, 28 Mar 2008 15:19:50 +0000 |
| Subject: | note 82135 added to function.stream-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137675@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 216.235.15.211
Probable Submitter: 201.54.226.161
----
Manual Page -- http://www.php.net/manual/en/function.stream-get-contents.php
Edit -- https://master.php.net/note/edit/82135
Del: integrated -- https://master.php.net/note/delete/82135/integrated
Del: useless -- https://master.php.net/note/delete/82135/useless
Del: bad code -- https://master.php.net/note/delete/82135/bad+code
Del: spam -- https://master.php.net/note/delete/82135/spam
Del: non-english -- https://master.php.net/note/delete/82135/non-english
Del: in docs -- https://master.php.net/note/delete/82135/in+docs
Del: other reasons-- https://master.php.net/note/delete/82135
Reject -- https://master.php.net/note/reject/82135
Search -- https://master.php.net/manage/user-notes.php