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 6063433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:09:55+00:00 2026-05-23T09:09:55+00:00

This is a 2 part question… 1) Does file_get_contents create server load? I am

  • 0

This is a 2 part question…

1) Does file_get_contents create server load? I am using it a solid 3+ times in my blogs sidebar to pull out advertisements through my blog network, but now the network is slowing down. I want to make sure that’s not the cause.

2) What IS the best way to handle cross-server includes? Like I said above, I am using file_get_contents, and probably doing it in a VERY poor way. Looking at some of my code, I’ll see:

<?
$c = file_get_contents("http://www.url.com/includes/include1.php");
echo ($c);
?>  
<?
$c = file_get_contents("http://www.url.com/includes/include2.php");
echo ($c);
?>  

I understand right now that’s sloppy because it’s opening and closing php when you don’t need to, plus it’s putting two different URL’s under the same variable. That makes me wonder how it even works at this point.

Anyway, I’m looking for the best solution to my cross-server include problem which will hopefully lower the drag on my server under heavier loads.

Thank yo!

  • 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-23T09:09:55+00:00Added an answer on May 23, 2026 at 9:09 am

    You should not allow cross-server includes. What would be stopping someone other than you from reading the contents of your PHP files?

    As for your original question: If you are concerned about responsiveness, then load your advertisements via Ajax (I recommend jQuery). That way the real content will load quickly with the ads arriving shortly afterwards.

    Another option to consider would be caching your ads somehow.

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

Sidebar

Related Questions

This is actually a two part question. First,does the HttpContext.Current correspond to the current
This is a 2 part question. Question 1: I am trying to create a
This is a part algorithm-logic question (how to do it), part implementation question (how
This is a two part question. A dumb technical query and a broader query
I think this is a multi-part question, so bear with me. Currently all of
Note : The code in this question is part of deSleeper if you want
I ask this question in anticipation as part of a project. I have experience
This is part observation, part question. First the observation: While everyone talks of modular
I apologize. This is part rant, part question. For the rant: Dear MS developers
This is a two part question: Part 1 First, dealing with calculating the entropy

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.