file upload size

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

file upload size

Post by phpcoder »

hello,
How can i increase the size of file to be uploaded.
My file size are 800MB + (i.e movies);
And also i m using <embed> tag to pla movies can any one give me some advise wether it is right way to do.
Note: Everything is on LAN:...
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

Post by Jim »

What's the script you're using to upload files right now?

And for further reference in to this problem, may I suggest you check out http://www.php.net/manual/en/features.file-upload.php?

Oh, and where are you hosting your files, because 800mb's of bandwidth downed at one turn is pretty crazy. :P
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Increase the memory limit, execution time and file upload max size in your php.ini.

Code: Select all

<?php
ini_set("memory_limit", "256M"); // M = megabytes
ini_set("max_execution_time", "90000"); // the number is in seconds
ini_set("upload_max_filesize", "1000M"); // M = megabytes
?>
Post Reply