1,105,585 Community Members

video upload

Member Avatar
ryan_vietnow
Posting Pro
578 posts since Aug 2007
Reputation Points: 13 [?]
Q&As Helped to Solve: 74 [?]
Skill Endorsements: 0 [?]
 
2
 

hey guys,does anyone here know some tutorial on how to upload video files?tutorial in Adobe is quite confusing.Thanks..

Member Avatar
mostafadotnet
Junior Poster
157 posts since Jul 2006
Reputation Points: 18 [?]
Q&As Helped to Solve: 13 [?]
Skill Endorsements: 0 [?]
 
0
 

it's as simple as uploading other files.
If you know how to upload other type of files, then you know this also.
try saerching for uploading file using php/html and/or asp.net/html.

good luck.

Member Avatar
ryan_vietnow
Posting Pro
578 posts since Aug 2007
Reputation Points: 13 [?]
Q&As Helped to Solve: 74 [?]
Skill Endorsements: 0 [?]
 
1
 

ok,thanks I got it now.

Member Avatar
rajlaxmi sharma
Newbie Poster
4 posts since Aug 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

sir how to upload video in php language

Member Avatar
muralikalpana
Posting Pro
549 posts since Sep 2009
Reputation Points: 17 [?]
Q&As Helped to Solve: 36 [?]
Skill Endorsements: 0 [?]
 
0
 
<input type="file" name="video">

php code for upload

$ss=mkdir("videos/",0777);
		$uploaddir="videos/";
		$filetype=$_FILES[video][type];
		$filename=$_FILES[video][name];
		$realpath=$uploaddir.$filename;
		if(!empty($filetype)) 
		{	 
			move_uploaded_file($_FILES['video']['tmp_name'],$realpath ) ;
			
		}
Member Avatar
amit_kuetcse2k5
Newbie Poster
7 posts since Oct 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I can not upload video file with PHP in my server but it work's fine in localhost.
I fix the max_upload_filesize is 60M.

What's the problem?Please help me......

Member Avatar
cwarn23
Occupation: Genius
3,028 posts since Sep 2007
Reputation Points: 387 [?]
Q&As Helped to Solve: 281 [?]
Skill Endorsements: 15 [?]
Team Colleague
Featured
 
0
 

Put this into your html form to allow the user to upload more than the browser can normally handle.

<input type="hidden" name="MAX_FILE_SIZE" value="60000000" />
<input type="file" name="video">
Member Avatar
diovanne
Newbie Poster
3 posts since Jan 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Good day to all IT professionals...I'm currently developing a Social networking Site
for our school and it is exclusive for our school only. can you help me by giving me a tip on how to start with my project and where to start also....thank you so much

Member Avatar
diovanne
Newbie Poster
3 posts since Jan 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

how can i save the message in the inbox. and the sent messages in the sent items.can you give me a php code for this? thank you

Member Avatar
diovanne
Newbie Poster
3 posts since Jan 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

how to insert the chat system to my page using ajax?

Member Avatar
Bestwebdesign
Newbie Poster
8 posts since Jan 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
-1
 

Hi,
The following code will guide you to upload video files.

//get the size of the video
<?php
$size=filesize($_FILES['video']['tmp_name']);



//compare the size with the maxim size we defined and print error if bigger

if ($size > MAX_SIZE*1024)

{

echo '<h1>You have exceeded the size limit!</h1>';

$errors=1;

}



//give the video a unique name in case a video already exists with the name on the server

$video_name=time().'.'.$extension;



//assign a folder to save the video to on your server

$newname="video/".$video_name;



//verify that the video has been loaded

$copied = copy($_FILES['video']['tmp_name'], $newname);

if (!$copied) 

{

echo '<h1>Copy unsuccessful!</h1>';

$errors=1;

}}}}



//If no errors registered, print the success message

if(isset($_POST['Submit']) && !$errors) 

{

echo "<h1>File Uploaded Successfully! Try again!</h1>";

}



?>
Member Avatar
mina gharache
Newbie Poster
2 posts since Jul 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

hi
format field of table in sql (database - phpmyadmin )for video ???
varchar (10000) : 1mb
for 6 mb ??? what format ?

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article