Welcome to WebmasterWorld Guest from 54.147.10.12

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

How to upload video files using php

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

Junior Member

10+ Year Member

joined:Sept 3, 2005
posts:131
votes: 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,

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

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 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.
8:34 pm on Feb 21, 2006 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15755
votes: 0


maybe try this search [google.com] for some threads on upload scripts as well
5:52 pm on Feb 23, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 13, 2006
posts:165
votes: 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.
8:24 am on Feb 25, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 3, 2005
posts:131
votes: 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

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

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 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].