uploading videos
#1
Posted 18 May 2006 - 06:56 PM
--
Many Thanks
Liveman
#2
Posted 19 May 2006 - 02:33 AM
If you´re just going to store the video, not view it, you could probably just zip it and use "application/zip".
#3
Posted 19 May 2006 - 06:00 AM
#4
Posted 27 May 2006 - 12:18 AM
Quote
video/vnd.vivo - ____
video/quicktime - qt, mov
video/x-msvideo - avi
video/x-sgi-movie - movie
From: http://www.ltsw.se/
I don't know if there are more or not.
Edited by origin89, 27 May 2006 - 12:19 AM.
#5
Posted 27 May 2006 - 02:21 AM
<? $filename = 'test.avi'; $extension = explode( '.', $filename ); $extension = $extension[1]; ?>
Edited by Cliff, 27 May 2006 - 02:22 AM.
#6
Posted 27 May 2006 - 04:31 AM
Never use that method.
#7
Posted 27 May 2006 - 12:50 PM
.Matt, on May 27 2006, 09:31 AM, said:
Never use that method.
<?
$filename = 'test.jpg.avi';
$extension = explode( '.', $filename );
for( $i=1; $i < count( $extension ) - 1; $i++ )
{
$extension.= $extension[ $i ];
}
?>
Edited by Cliff, 27 May 2006 - 12:50 PM.
#8
Posted 27 May 2006 - 12:56 PM
#9
Posted 27 May 2006 - 06:46 PM
$filename = 'test.jpg.avi'; $extension = explode( '.', $filename ); $extension = $extension[ count( $extension ) ];
#10
Posted 28 May 2006 - 08:36 AM
$filename = 'test.jpg.avi.exe.zip.exe.p2l'; $extension = array_reverse($extension); $extension = $extension[0];
the extension will always be the last one, if you reverse the array it will always be the first one.
1111th post btw
Edited by Avalanche, 28 May 2006 - 08:37 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
