![]() |
anything wrong with my code.. php
PHP Code:
|
|
are you ok?
|
Are you a bot?
|
looks ok.
|
no wait. You cant do file_exists on a url, only a linux path. I knew it was a trick question!
|
Quote:
|
Looks like the beginnings of a tube script.
|
Code:
$url="http://www.site.com/video.flv"; |
Quote:
|
Quote:
To the OP, as konrad said, replace the $url with the local FS path and it should be fine. |
Quote:
|
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'; } |
Code:
$filename = $url.'video.mp4'; |
Quote:
|
use file_exists works for local and url
|
Quote:
|
Quote:
|
Quote:
|
All times are GMT -7. The time now is 03:07 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc