Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Location
    Singapore
    Posts
    1,032

    Red face using File_Exist command on PHP

    Hello,

    I am having some problems with using the file_exist command to do a remote file look up.

    Here is my cosde

    <?php

    if(file_exists("http://thedomain.com/file.php"))
    {
    print 'File is <font color=#00FF00><b>on-line</b></font>';
    }
    else
    {
    print 'File <font color=#FF000000><b>NOT available</b></font>';
    }

    ?>
    Am I using the wrong command to do the wrong thing??

    Thanks for the help
    -=- GQ Hong -=-
    GalacNet WebMaster

  2. #2
    Join Date
    Jan 2004
    Location
    Singapore
    Posts
    1,032
    Opps used the wrong commands.... Should be fopen instead of file_exist.

    Ignore above post, problem solved.

    thanks for looking
    -=- GQ Hong -=-
    GalacNet WebMaster

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •