GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP coders.. big uploads time out, help needed (https://gfy.com/showthread.php?t=880464)

thumbnailsource 01-09-2009 07:24 AM

PHP coders.. big uploads time out, help needed
 
Hi guys,

I'm trying to setup a script for uploading large files through PHP, and the script times out and causes the page to load infinitely. The code works flawlessly on smaller files, and i've searched google for a solution with no luck.

the php.ini has huge settings for:
max_execution_time
max_input_time
post_max_size
upload_max_filesize

so I don't know what else to do at this point.. right now i'm testing with a 170mb file and left it running over night. nothing. what gives?

leek 01-09-2009 07:26 AM

Running Apache? If so, it could be the Apache HTTP timeout.

Read the comments here.

StuartD 01-09-2009 07:28 AM

I wouldn't even bother. I've had more than my share of headaches dealing with that. PHP, Apache.. hell, browsers themselves were never meant to deal with file uploads of that size.
That's why FTP was invented.

I'm not saying it's not possible but for all the headaches you'll give yourself, I suggest finding another way. :2 cents:

fris 01-09-2009 07:29 AM

what about memory_limit variable?

thumbnailsource 01-09-2009 07:38 AM

max_execution_time 3000
memory_limit 200M

is all set in my php.ini

I'm so frustrated with this >_<

fris 01-09-2009 07:40 AM

might want to check apaches timeout

sortie 01-09-2009 07:52 AM

Quote:

Originally Posted by thumbnailsource (Post 15302878)
Hi guys,

I'm trying to setup a script for uploading large files through PHP, and the script times out and causes the page to load infinitely. The code works flawlessly on smaller files, and i've searched google for a solution with no luck.

the php.ini has huge settings for:
max_execution_time
max_input_time
post_max_size
upload_max_filesize

so I don't know what else to do at this point.. right now i'm testing with a 170mb file and left it running over night. nothing. what gives?

If you write it in PERL then there is no such thing as a timeout or limit!!!

If you want a perl script to do this then email me : tube at econfirmpro dot com

grumpy 01-09-2009 07:54 AM

How big are the files?

thumbnailsource 01-09-2009 08:49 AM

Quote:

Originally Posted by grumpy (Post 15302984)
How big are the files?

between 1mb and 200mb..

the less than 100mb files work great

woj 01-09-2009 09:26 AM

Like Stuart said, unless there is a great reason for you to be uploading 100MB files via the web, going the ftp route is the way to go...

sortie 01-09-2009 11:26 AM

Quote:

Originally Posted by thumbnailsource (Post 15302878)
Hi guys,

I'm trying to setup a script for uploading large files through PHP, and the script times out and causes the page to load infinitely. The code works flawlessly on smaller files, and i've searched google for a solution with no luck.

the php.ini has huge settings for:
max_execution_time
max_input_time
post_max_size
upload_max_filesize

so I don't know what else to do at this point.. right now i'm testing with a 170mb file and left it running over night. nothing. what gives?

I just upoaded a 135MB video in 1 hour and 2 minutes using my tube script that
I wrote in PERL. There does not appear to be any limit to upload size with perl.
You can however set a max upload size.

If this was something that several people wanted then I could cut this code out of
my tube script and set it up to work with your tube script.

How many people need this?


All times are GMT -7. The time now is 05:01 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123