Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 04-21-2009, 08:27 AM uploading flv file
Skilled Talker

Posts: 97
Trades: 0
Want upload flv file through php.
1) Is there a limit size for the file to be uploaded?
2) How to solve the page time out issue during the upload.

i need to upload flv files through php, like i uploaded pdf files and images before, but the problem is the flv file sizes.
how to upload a flv file i need a full function to solve this problem for me
plz i need advice ...
thnk for replies in advance
john_zakaria is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-21-2009, 09:28 AM Re: uploading flv file
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
You have all your answers there:
http://www.php.net/manual/en/feature...ost-method.php
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 04-21-2009, 10:16 AM Re: uploading flv file
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Not too sure on this one, but I think you need to modify the max file size attribute in the php.ini file settings. I could be wrong though.
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 04-21-2009, 11:27 AM Re: uploading flv file
Novice Talker

Posts: 12
Trades: 0
Quote:
Originally Posted by Brian07002 View Post
Not too sure on this one, but I think you need to modify the max file size attribute in the php.ini file settings. I could be wrong though.
Uploading with PHP has a few issues.

1) upload_max_filesize This is how big the size is
2) set_time_limit ... this governs how long the script will execute.. which also means how long the upload will take.

If you need to make a really nice UI for uploading look at http://developer.yahoo.com/yui/uploader/ Comes with a progress bar
__________________
Reliable and Legal
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
?
Find A Paralegal Fast.

Please login or register to view this content. Registration is FREE
sjenkins is offline
Reply With Quote
View Public Profile
 
Old 04-21-2009, 02:17 PM Re: uploading flv file
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
If you read the 20 first lines of the manual link I've posted, you will (all) see that you have a part of the answer.

You have 4 .ini parameters, and one in the form that makes the upload that can influence the script.

And set_time_limit is just one of them.
It's not the only parameter to be changed in the case of an upload. You have to set max_time_input as well.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 04-21-2009, 02:41 PM Re: uploading flv file
moatist's Avatar
Skilled Talker

Posts: 64
Trades: 0
Change the following in your php.ini file:

max_upload_size (default is 2MB)

memory_limit

post_max_size

max_input_time


You may also want to add
PHP Code:
set_time_limit(0); 
to your upload script.

-Moatist
__________________
Think in code; Dream in digital.

<?php if($helpfull == true){ $talkupation++; } ?>
moatist is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to uploading flv file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24259 seconds with 12 queries