Results 1 to 5 of 5
-
8th Jul 2012, 03:42 AM #1OPMember
how to check remote file exist via php
the file is on port 881
i find this script but it only work on port 80
function check_remote_file_exists($url)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_NOBODY, true);
$result = curl_exec($curl);
$found = false;
if ($result !== false) {
$statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if ($statusCode == 200) {
$found = true;
}
}
curl_close($curl);
return $found;
}nightcat Reviewed by nightcat on . how to check remote file exist via php the file is on port 881 i find this script but it only work on port 80 function check_remote_file_exists($url) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_NOBODY, true); $result = curl_exec($curl); Rating: 5
-
8th Jul 2012, 03:50 AM #2Respected MemberWebsite's:
DL4Everything.com Soft2050.in
-
8th Jul 2012, 03:50 AM #3MemberWebsite's:
imdber.org justpaste.meHaven't tried CURLOPT_PORT? http://php.net/manual/en/function.curl-setopt.php
edit: soft2050 beat me by 5 seconds
-
8th Jul 2012, 04:44 AM #4OPMember
thanks
not work
-
14th Jul 2012, 12:12 AM #5MemberPHP Code:
check_remote_file_exists('http://xx.filebox.com:182/asd712y3123123/video/flv');
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Newthread and editpost - "File does not exist"
By ecuri in forum vBulletinReplies: 2Last Post: 5th Jul 2012, 04:52 AM -
File Does Not Exist Error
By Pr0nZtrA in forum Technical Help Desk SupportReplies: 2Last Post: 17th Sep 2010, 10:21 AM -
how to remote upload file from filestrack to other
By torrfriend in forum Webmaster DiscussionReplies: 1Last Post: 16th Sep 2010, 06:28 PM -
file check for viris??
By warezrock in forum General DiscussionReplies: 9Last Post: 19th Dec 2009, 05:29 AM -
New file hosting Site check it out
By darkfelon in forum Site ReviewsReplies: 17Last Post: 29th Apr 2009, 10:33 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...