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

  • Home
  • SEARCH
  • 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 6802055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:10:34+00:00 2026-05-26T19:10:34+00:00

I am using file_get_contents through proxy to fetch a webpage. This setup was working

  • 0

I am using file_get_contents through proxy to fetch a webpage. This setup was working fine for a good time now but since yesterday it started producing weird results.

The output of the file_get_contents function is an outdated page. If I change the proxy I get either a phpinfo page or a printed array of all the initialized variables in php, both of the server I connect to – result depending on the proxy.

Is there a caching problem in my server or a caching problem in the proxy. Is it possible that their server is responsible.

Also, accessing the page directly or through a web proxy does not suffer from the above problems.

  • 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-26T19:10:35+00:00Added an answer on May 26, 2026 at 7:10 pm

    the proxy is most likely caching the page. file_get_contents() is a simple get source and store in memory function, it isnt cached. I know squid proxy has numerous settings for caching, but you’d have to detail your proxy setup for any further help

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

Sidebar

Related Questions

I get a page using file_get_contents from a remote server, but I want to
Currently I'm using file_get_contents() to submit GET data to an array of sites, but
I'm using PHP's function file_get_contents() to fetch contents of a URL and then I
Thanks in advance. Getting this warning when using below code: Warning: file_get_contents(test.php) [function.file-get-contents]: failed
I am working my way through implementing a report generation solution using TCPDF. Some
I'm using file_get_contents('mysourcefile.html') to load the contents of mysourcefile.html into mysql db. I have
My code is using file_get_contents() to make GET requests to an API endpoint. It
Im using this regex to get the contents of a tag in a file.
Ok, I'm reading through a file now, line by line. I know each functions
I have a page with many HTML lines like this: <ul><li><a href='a_silly_link_that_changes_each_line.php'>the_content_i_need</a></li></ul> Now as

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.