Loading ...
Sorry, an error occurred while loading the content.

RE: [PBML] checking for if a file exists on a remote server.

Expand Messages
  • jonny_5
    Thank you MR. hobbs your solution works great. Lee ... From: Randall Hobbs [mailto:Mandrake981@msn.com] Sent: Sunday, December 31, 2000 3:43 AM To:
    Message 1 of 5 , Dec 31, 2000
    • 0 Attachment
      Thank you MR. hobbs

      your solution works great.

      Lee

      -----Original Message-----
      From: Randall Hobbs [mailto:Mandrake981@...]
      Sent: Sunday, December 31, 2000 3:43 AM
      To: perl-beginner@egroups.com
      Subject: Re: [PBML] checking for if a file exists on a remote server.


      Oops.. Guess it would help to read the question eh? LOL.

      To check to see if a file exists on a remote server, try looking for the
      HEAD...

      #!/usr/bin/perl

      use LWP::Simple;

      if (head("http://www.domain.com/file")) {
      # File exists subroutine
      }

      Take care....
      Randall

      You have questions? We have answers...
      http://www.expert-html.com

      Are you in the Zone?
      http://www.wtv-zone.com
    Your message has been successfully submitted and would be delivered to recipients shortly.