Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 631607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:59:03+00:00 2026-05-13T19:59:03+00:00

How to check if a file exist on an External Server? I have a

  • 0

How to check if a file exist on an External Server? I have a url “http://logs.com/logs/log.csv” and I have an script on another server to check if this file exists. I tried

$handle = fopen("http://logs.com/logs/log.csv","r");
if($handle === true){
return true;
}else{
return false;
}

and

if(file_exists("http://logs.com/logs/log.csv")){
return true;
}else{
return false;
}

These methos just do not work

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:59:04+00:00Added an answer on May 13, 2026 at 7:59 pm
    1. Make sure error reporting is on.

    2. Use if($handle)

    3. Check allow_url_fopen is true.

    4. If none of this works, use this method on the file_exists page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can I check if a file exists at a URL? This link is very
I have a file check and sort script. Now I wanted the user to
I want to check a particular file exist in Azure Blob Storage. Is it
How do you check to see if a file does not exist in SQL
I'm trying to check if a file exists. If I use this: NSData *data
Possible Duplicate: Check synchronously if file/directory exists in Node.js For example, i have a
I use the following code to check file availability File f1=new File(/data/data/com.myfiledemo/files/settings.dat); if(f1.exists()) textview.setText(File
I want to check if a file exists on server's disk and I am
I am trying to check if a file is on the server with the
I have a file in the storage and I can't check it, because the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.