Re: get_headers() Not Working PHP-GTK
| From: | Jeremy Johnstone | Date: | Wed, 15 Dec 2004 00:20:04 +0000 |
| Subject: | Re: get_headers() Not Working PHP-GTK | ||
| References: | 1 2 3 4 5 6 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5363@lists.php.net to get a copy of this message | ||
Another good method would be to use cURL. It's probably the cleanest
method to use in GTK to get foreign data (ie URL headers, XML data,
web content, etc), IMHO.
-Jeremy
On Mon, 13 Dec 2004 13:28:39 +0100, Malk0 <malk0.phpgtk@gmail.com> wrote:
> you can perhaps have a look to header grabber :
> http://exeprod.com/projects/header_grabber/readme/
>
> On Mon, 13 Dec 2004 12:48:30 +0800, firepages.com.au
> <fire@firepages.com.au> wrote:
> > 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
> > >
> > >
> > >
> > >
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
>
> -- Malk0 --
> venez discuter php-gtk en francais ici http://mk0phpgtk.xgarreau.org¨ŸTÖ0[
> ¯ðÖ¡\
>
> --
>
> -- Malk0 --
> venez discuter php-gtk en francais ici
> http://mk0phpgtk.xgarreau.org
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
---------------------------
Jeremy Johnstone
http://www.jeremyjohnstone.com
jsjohnst@php.net