Re: creating a PHP wrapper script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx


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
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux