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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:15:04+00:00 2026-05-13T07:15:04+00:00

I just noticed a PHP config parameter called allow_url_include , which allows you to

  • 0

I just noticed a PHP config parameter called allow_url_include, which allows you to include a PHP file hosted elsewhere as you would a locally. This seems like a bad idea, but “why is this bad” is too easy a question.

So, my question: When would this actually be a good option? When it would actually be the best solution to some problem?

  • 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-13T07:15:05+00:00Added an answer on May 13, 2026 at 7:15 am

    Contrary to the other responders here, I’m going to go with “No”. I can’t think of any situation where this would make a good idea.

    Some quick responses to the other ideas:

    • Licensing : would be very easy to circumvent
    • Single library for multiple servers: I’m sorry but this is a very dumb solution to something that should be solved by syncing files from for example a
      • sourcecontrol system
      • packaging / distribution system
      • build system
      • or a remote filesystem. NFS was mentioned
    • Remote library from google: nobody has a benefit to a slow non-caching PHP library loading over PHP. This is not (asynchronous) javascript

    I think I covered all of them..

    Now..

    your question was about ‘including a file hosted elsewhere’, which I think you should never attempt. However, there are uses for allow_url_include. This setting covers more than just http://. It also covers user-defined protocol handlers, and I believe even phar://. For these there a quite a bit of valid uses.

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

Sidebar

Ask A Question

Stats

  • Questions 281k
  • Answers 281k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I fixed it - I had to 100% uninstall VS2010… May 13, 2026 at 3:56 pm
  • Editorial Team
    Editorial Team added an answer I realized where I'm getting my error. First, thanks for… May 13, 2026 at 3:56 pm
  • Editorial Team
    Editorial Team added an answer Try Charles Proxy it works with both HTTPS and AMF.… May 13, 2026 at 3:56 pm

Related Questions

I just implemented uploadify in my project, and I noticed what seems like an
I have a hosted site and I'm having trouble configuring Joomla (running Joomla +
I am using MySQL 5.0 for a site that is hosted by GoDaddy (linux).
Typically I use E_ALL to see anything that PHP might say about my code
I am creating a WPF/MVVM framework which generates the code for the model classes.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.