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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:19:16+00:00 2026-05-20T06:19:16+00:00

I recently worked on a project on .NET and part of the code involved

  • 0

I recently worked on a project on .NET and part of the code involved reading the header and footer from a pre-defined format for consistency across various websites shared by the same client.

I am faced by a similar problem in php. I get the contents of the header/footer links using:

<?php
$contents = file_get_contents('http://www.mysite.com/common/footer.asp');
echo $contents;
?>

Is there a way I can load this into cache to avoid repeated calls to http://www.mysite.com/common/footer.asp

Cheers

  • 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-20T06:19:17+00:00Added an answer on May 20, 2026 at 6:19 am

    If your looking to cache across many page loads, you could use the session.

    session_start();
    $_SESSION['somekey'] = value;
    

    Or into persistent storage like a flat file, database or memcache.

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

Sidebar

Related Questions

I recently upgraded a C# project from .NET 3.5 to .NET 4. I have
I recently ported some code from a Flex project over to a new pure
I recently worked on a .Net WPF project to build a retail point of
I've recently worked on a project where every method contained a return code. Example:
I've recently worked on a project where a WCF service was involved, and a
I had something like the following code in a project I recently worked on.
Recently, I have worked in a project were TDD (Test Driven Development) was used.
I've got a program that worked until recently. The offending code is shown here:
I recently worked with UModel 2010 to generate a Class Diagram from my Visual
I recently worked on a project that made extensive use of Core Animation. 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.