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:
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
* 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
* 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:
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
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
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
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
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
?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
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
11 matches
Mail list logo