Thread
:
anything wrong with my code.. php
View Single Post
03-21-2010, 08:41 AM
MichaelP
Registered User
Industry Role:
Join Date: Aug 2003
Location: QWEBEC Corporate Office
Posts: 7,124
TRY :
$file = "full/server/path/to/file/video.mp4" ;
$url = "http://somedomain.com/" ;
IF (file_exists( $file)) {
$filename = $url/video.mp4';
} ELSE {
$filename = $url/video.flv';
}
MichaelP
View Public Profile
Visit MichaelP's homepage!
Find More Posts by MichaelP