NYCPHP Meetup

NYPHP.org

[nycphp-talk] POST request

Matteo Rinaudo matteo.rinaudo at gmail.com
Sat Jun 30 09:04:24 EDT 2007


Hi David,

[CUT]
> I think the question needs to be not if and how much, but why? HTTP is
> designed to transfer hypertext, not files.[CUT]

That's right, I agree with you, I considered to use FTP because of
that, but I was curious about some HTTP related transfers.

[CUT]
> You also want to look at the upload file limits, which are a subset of
> the POST limits. The POST limit has to be larger than the upload file limit.

Yes, sure, as the PHP guys recommend, that's why I set post_max_size=3.5G
and upload_max_filesize=3G. Also `memory_limit' must be larger than
`post_max_size', as you can see from my previous message. My PHP
installation is also compiled with large file support, I
double-checked that the Makefile had these compiler flags:

-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

> I propose you look at FTP transfers and use the cURL functions to do
> this.[CUT]
> [CUT] That strikes me to be the way better
> approach for moving huge files and remedies any potential timeout problems.

Yes, no doubt about it. I agree, I was just curious about POST limits.
Thank you,
Matteo



More information about the talk mailing list