[PHP] Problem using fread with https

2004-08-26 Thread Pablo Gosse
Hi folks. I'm getting the following error when attempting to use PEAR::HTTP_Request to check the existence of a file. It's throwing an error from fread on an https stream: Warning: fread(): SSL: fatal protocol error in /u0/local/lib/php/Net/Socket.php on line 263 Line 263 is as follows:

Re: [PHP] Problem using fread with https

2004-08-26 Thread Justin Patrin
On Thu, 26 Aug 2004 14:40:46 -0700, Pablo Gosse [EMAIL PROTECTED] wrote: Hi folks. I'm getting the following error when attempting to use PEAR::HTTP_Request to check the existence of a file. It's throwing an error from fread on an https stream: Warning: fread(): SSL: fatal protocol error

Re: [PHP] Problem using fread with https

2004-08-26 Thread Curt Zirzow
* Thus wrote Pablo Gosse: Hi folks. I'm getting the following error when attempting to use PEAR::HTTP_Request to check the existence of a file. It's throwing an error from fread on an https stream: Warning: fread(): SSL: fatal protocol error in /u0/local/lib/php/Net/Socket.php on line

Re: [PHP] Problem using fread with https

2004-08-26 Thread Curt Zirzow
* Thus wrote Justin Patrin: On Thu, 26 Aug 2004 14:40:46 -0700, Pablo Gosse [EMAIL PROTECTED] wrote: Hi folks. I'm getting the following error when attempting to use PEAR::HTTP_Request to check the existence of a file. It's throwing an error from fread on an https stream: Warning:

Re: [PHP] Problem on fread!

2002-05-14 Thread Miguel Cruz
On Tue, 14 May 2002, Jack wrote: I had a problem with fread function! I had a text file containning a date, so inside the text file, it was something look like this : 05032002 then now i want to read this file but want to seperate the dd -mm-, so i want to get the first two digit as the

[PHP] Problem on fread!

2002-05-13 Thread Jack
Dear all I had a problem with fread function! I had a text file containning a date, so inside the text file, it was something look like this : 05032002 then now i want to read this file but want to seperate the dd -mm-, so i want to get the first two digit as the (day), then nex two as the

Re: [PHP] Problem on fread!

2002-05-13 Thread Jason Wong
On Tuesday 14 May 2002 13:56, Jack wrote: Dear all I had a problem with fread function! I had a text file containning a date, so inside the text file, it was something look like this : 05032002 then now i want to read this file but want to seperate the dd -mm-, so i want to get the

[PHP] problem with fread

2002-05-07 Thread Henning Sprang
Hy, i have a question about the fread() function. i want to read data from a webserver url, which i don't know the exact size of, i only know that it varies. i see i have to give the lentgh of a file when reading it, but for remote files i have no way to check the size. And i saw no way to tell

Re: [PHP] problem with fread

2002-05-07 Thread Dan Hardiker
i have a question about the fread() function. i want to read data from a webserver url, which i don't know the exact size of, i only know that it varies. You dont actually give the size of the file, you give the size of the block you want to pull. For example: ?php $output = ; // Clear

Re: [PHP] problem with fread

2002-05-07 Thread Henning Sprang
?php $output = ; // Clear output $url = http://whatever.com/file.html;; // whatever you wanna pull from if ($fp = fopen($url, r)) { while ($tmp = fget($fp, 4096)) $output .= $tmp; fclose($fp); } echo The URL's content is: .$output; ? erm, don't wanna be nosy, but

Re: [PHP] problem with fread

2002-05-07 Thread Dan Hardiker
erm, don't wanna be nosy, but you meant fgets() - forgot the s - didn't you? Yes I did (early-morning-itis I guess heh). Thanks for the typo correction ;) Ammended code is as follows: ?php $output = ; // Clear output $url = http://whatever.com/file.html;; // whatever you wanna pull