Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-09-2009, 07:24 AM   #1
thumbnailsource
Confirmed User
 
Join Date: Feb 2004
Location: jacksonville
Posts: 154
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?
thumbnailsource is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2009, 07:26 AM   #2
leek
Confirmed User
 
leek's Avatar
 
Join Date: May 2008
Location: Charlotte, NC
Posts: 342
Running Apache? If so, it could be the Apache HTTP timeout.

Read the comments here.

Last edited by leek; 01-09-2009 at 07:27 AM..
leek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2009, 07:28 AM   #3
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
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.
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2009, 07:29 AM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
what about memory_limit variable?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2009, 07:38 AM   #5
thumbnailsource
Confirmed User
 
Join Date: Feb 2004
Location: jacksonville
Posts: 154
max_execution_time 3000
memory_limit 200M

is all set in my php.ini

I'm so frustrated with this >_<
thumbnailsource is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2009, 07:40 AM   #6
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
might want to check apaches timeout
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2009, 07:52 AM   #7
sortie
Confirmed User
 
sortie's Avatar
 
Industry Role:
Join Date: Mar 2007
Posts: 7,771
Quote:
Originally Posted by thumbnailsource View Post
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
__________________
sortie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2009, 07:54 AM   #8
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
How big are the files?
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2009, 08:49 AM   #9
thumbnailsource
Confirmed User
 
Join Date: Feb 2004
Location: jacksonville
Posts: 154
Quote:
Originally Posted by grumpy View Post
How big are the files?
between 1mb and 200mb..

the less than 100mb files work great
thumbnailsource is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2009, 09:26 AM   #10
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
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...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-09-2009, 11:26 AM   #11
sortie
Confirmed User
 
sortie's Avatar
 
Industry Role:
Join Date: Mar 2007
Posts: 7,771
Quote:
Originally Posted by thumbnailsource View Post
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?
__________________
sortie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.