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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:41:08+00:00 2026-05-26T09:41:08+00:00

Possible Duplicate: including php file from another server with php <?php include(‘http://www.staticimages.co/legal-documents/fonts.php’);?> I’m trying

  • 0

Possible Duplicate:
including php file from another server with php

 <?php include('http://www.staticimages.co/legal-documents/fonts.php');?>

I’m trying to centralize a file that I will include in a few different domains.
I’ve got a location but I’m unsure how to include the file.
I’ve tried the above (which is the correct URL) but I get the following errors;

Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\wamp\www\flirtwithme.co\includes\legal\dating-safety-tips.php on line 15

Is there a preferred way to do this?
Maybe CURL?

thx

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

    Don’t do this during runtime – it’s terrible for security (the PHP code will have to be transmitted in clear text in order to be included) and performance (a HTTP call will take considerable time, and if the remote server is down or unreachable, your script will time out).

    If you have to fetch content from a remote location, consider using a cron job that will fetch the data at regular intervals, or – maybe better – an active “push” solution using FTP for example, updating the file at multiple locations whenever it’s updated.

    For the cron job, you would indeed have to use curl (if it’s installed), as your provider is disallowing access to http:// URLs from file functions.

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

Sidebar

Related Questions

Possible Duplicate: including php file from another server with php i want to have
Possible Duplicate: Including PHP functions from another file I'm building code that use function
Possible Duplicate: Can you use $_GET variables when including a file in PHP? Is
Possible duplicate of: should-i-link-to-google-apis-cloud-for-js-libraries also many other discussions, including: Where do you include the
Possible Duplicate: How to make PHP set HTTP status code to 500 automatically in
Possible Duplicate: What is my script src URL? I have situation: <script type=text/javascript src=http://server/some.js>
Possible Duplicate: Read data from a file individually and multiply the two columns in
Possible Duplicate: Why is require_once so bad to use? When PHP is including a
Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: Singleton: How should it be used Following on from Ewan Makepeace 's

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.