here's the code i'm using below to try and open up the url.. :)

thanks!
jay

$fp =
fopen("http://p.moreover.com/cgi-local/page?c=Music%20business%20news&o=xml";
, "r");
$length = filesize($fp);
$content = fread($fp,$length);
fclose($fp);
echo $content;

----- Original Message -----
From: "Jack Dempsey" <[EMAIL PROTECTED]>
To: "'Jay Paulson'" <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 1:52 PM
Subject: RE: [PHP] fopen not opening url


> Hi jay,
>
> I've done the exact thing you're trying, and it works...paste in some
> code so we can see where its going wrong...
>
> jack
>
> -----Original Message-----
> From: Jay Paulson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 30, 2001 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] fopen not opening url
>
> hello-
> I'm trying to use the fopen() command to open the url below and just
> read it
> into another $var. However, I'm having some problems.... the warning i
> get
> is below along with the url in the warning.  Anyone know what's going on
> here??
>
> Thanks,
> jay
>
> Warning: php_hostconnect: connect failed
> Warning:
> fopen("http://p.moreover.com/cgi-local/page?c=Music%20business%20news&o=
> xml"
> ,"r") - Bad file descriptor
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to