homepage Welcome to WebmasterWorld Guest from 54.211.180.175
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
How to upload video files using php
compose




msg:1273595
 12:33 pm on Feb 21, 2006 (gmt 0)

Hi

Can any body guide me please how to upload video files using php and how to maintain them. Is there any thing diffrent way to upload a video files?

Need guidence of u guys.

Vineet,

 

coopster




msg:1273596
 8:33 pm on Feb 21, 2006 (gmt 0)

I think the only difference or problems you may run into will be in regards to file size, upload time, max POST size, stuff like that. It's just the nature of video files. They are so big.

jatar_k




msg:1273597
 8:34 pm on Feb 21, 2006 (gmt 0)

maybe try this search [google.com] for some threads on upload scripts as well

Moosetick




msg:1273598
 5:52 pm on Feb 23, 2006 (gmt 0)

File size will definately be your biggest problem. You may need to modify your php.ini file to allow larger files than the default 2MB. If you are moving files in excess of 10MB, you should think about using FTP and not HTTP. It is more reliable with large file transfers since that's what it was created for.

compose




msg:1273599
 8:24 am on Feb 25, 2006 (gmt 0)

I am trying to upload video files using FTP now. but i am facing a problem in this. i make a sample script for testing ftp uploading. it was successfull but that source video file was in same directory from where i was running script.

Now i am using Html File control to select n browse source file from local drive.

Now when i am using this command to trape path of source file it is giving error that source file not found.

Code to trape source file path -

$file = $_FILES['tmp_name'];
ftp_put($conn_id, $file, $file, FTP_BINARY);

i know that it is giving only temproray path of file. so please can any body tell me how to trape the path of source file.

Vineet

coopster




msg:1273600
 12:11 am on Feb 27, 2006 (gmt 0)

It looks to me like you must still be using HTTP to upload the file as the $_FILES [php.net] superglobal is an associative array of items uploaded to the current script via the HTTP POST method. The directory that files are uploaded to are set in the php.ini in a configuration directive -- upload_tmp_dir [php.net].

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved