Re: get_headers() Not Working PHP-GTK
| From: | firepages.com.au | Date: | Mon, 13 Dec 2004 04:48:30 +0000 |
| Subject: | Re: get_headers() Not Working PHP-GTK | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5345@lists.php.net to get a copy of this message | ||
apache_request_headers & alias's are only available when PHP is running as
an apache module.
look at examples for fsockopen() in the manual as an alternative.
Regards,
Simon.
----- Original Message -----
From: "Francisco Obarrio" <obarriof@fibertel.com.ar>
To: <php-gtk-general@lists.php.net>
Sent: Monday, December 13, 2004 11:50 AM
Subject: [PHP-GTK] get_headers() Not Working PHP-GTK
> im trying to get the headers of a web page.. and in php works great..
> but when i run the same code in an app on php gtk .. it closes :(
> here its the code:
>
> $url="http://www.google.com";
> $az=get_headers($url);
> //print_r($az);
> $ez=explode("Content-Length:",$az[2]);
> $total_bytes=trim($ez[1]);
> //echo $total_bytes;
>
> Francisco
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>