Jump to content


Photo

uploading big files with PHP


  • Please log in to reply
4 replies to this topic

#1 nassar

nassar
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 July 2006 - 05:04 PM

Hi 2 all, Frankly i need help from experts in phpfreaks.
Now working on File uploading scripts... you know when i start uploading i face problem  related to the size of files that it is begger than 2 MB.

i googled internet i see that i can change the php ini file settings to accept morte than 2 MB  but i still face problem that uploading process not completed.

So is there anoy one can help me to solve this problem? or even if any can guid me the ready script to see the process file, how they manipulate the big files uploading matter.

i hope i explain the matter good. wait to read your posts.

Thanks in advance.
Nassar


#2 ShogunWarrior

ShogunWarrior
  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 15 July 2006 - 05:23 PM

I think the best option, though not always the most liked is to use a CGI script (Perl/Python etc.) which can usually upload over 100MB, and by using one with a status it's alot more user friendly than watching a page do nothing for a few minutes.
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd

#3 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 15 July 2006 - 05:45 PM

I'm pretty sure you can change the maximum upload size in php.ini. It think it's set to like 8MB default.

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#4 lordphate

lordphate
  • Members
  • PipPipPip
  • Advanced Member
  • 154 posts

Posted 15 July 2006 - 05:48 PM

What i did to fix the upload_max_filesize is using .htaccess    look it up on google... don't forget to set the maxprocess time too...and there's another one too...hold on let me think :P .... max_execution_time max_input_time post_max_size upload_max_filesize

#5 nassar

nassar
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 16 July 2006 - 05:53 AM

thx 2 all.
i find this online
=====
Using a fresh install of PHP, it's always a problem for newbies specially if they're working offline there is a need to deal with big files. And if I start working with phpmyadmin I don't prefer to visit mysql console just to run my dump file. So in case you need to tweak your PHP to upload big files there is three parameters to change in php.ini

upload_max_filesize
memory_limit
post_max_size
Why I'm posting this ? because I always change the first one upload_max_filesize and forget to tweak the others. Now I have to remember ...

resource: http://hatem.phpmaga...oad_big_fi.html
======





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users