Re: creating a PHP wrapper script?
| From: | Danilo Moncastro Sabbagh | Date: | Sun, 25 Apr 2010 20:53:15 +0000 |
| Subject: | Re: creating a PHP wrapper script? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304574@lists.php.net to get a copy of this message | ||
Even tho most of the servers uses 1.1 they have compliant configurations.
or at least they should.
things like mod_gzip and deflate are usually only used if the request is 1.1
to be honest.. if i understood you correctly the curl solution or even a wrapper for another
downloader like wget or aria is possible...
but id guess that a more fast and simple solution could be archived with a javascript chamging the
image srcs or an ajax request with jquery or other popular yet simple js lib.
Dan
Danilo Moncastro Sabbagh
cel: +55 31 88613128
gtalk: toreador@gmail.com
Em 25/04/2010, às 15:06, Nathan Rixham escreveu:
> Peter Lind wrote:
>> php.net/curl should be able to do what you want.
>
> +1
>
>> file_get_contents with a proper stream context should also work (have
>> a look at functions like
>> http://dk.php.net/manual/en/context.http.php
>> )
>
> very important to note that file_get_contents uses HTTP 1.0 not 1.1 by
> default.
>
> 99% of web servers use HTTP 1.1 nowadays.
>
> ps: please don't hook up on the 99%, i don't know the exact figure :p
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>