Activity Stream
48,167 MEMBERS
62645 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member

    Default 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

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in

  4.     
    #3
    Member
    Website's:
    imdber.org justpaste.me
    Haven't tried CURLOPT_PORT? http://php.net/manual/en/function.curl-setopt.php

    edit: soft2050 beat me by 5 seconds

  5.     
    #4
    Member
    thanks
    not work

  6.     
    #5
    Member
    PHP Code: 
    check_remote_file_exists('http://xx.filebox.com:182/asd712y3123123/video/flv'); 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 5th Jul 2012, 04:52 AM
  2. File Does Not Exist Error
    By Pr0nZtrA in forum Technical Help Desk Support
    Replies: 2
    Last Post: 17th Sep 2010, 10:21 AM
  3. how to remote upload file from filestrack to other
    By torrfriend in forum Webmaster Discussion
    Replies: 1
    Last Post: 16th Sep 2010, 06:28 PM
  4. file check for viris??
    By warezrock in forum General Discussion
    Replies: 9
    Last Post: 19th Dec 2009, 05:29 AM
  5. New file hosting Site check it out
    By darkfelon in forum Site Reviews
    Replies: 17
    Last Post: 29th Apr 2009, 10:33 AM

Tags for this Thread

BE SOCIAL