Jump to content

Recommended Posts

Can you please post the full error message you get for us to see. You don't need to configure includes. You can setup PHP to include files from a certain path automatically if you want - this what thorpe suggested earlier.

 

But posting the full error message will help to clear up what you mean.

Link to comment
https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-296529
Share on other sites

  • 1 month later...

Hi

Thank you for the reply.

Here is the code I used:

<?php

include("http://www.google.com");

?>

this is the error I got

Warning: include() [function.include]: URL file-access is disabled in the server configuration in H:\wamp\www\test.php on line 6

 

Warning: include(http://www.google.com) [function.include]: failed to open stream: no suitable wrapper could be found in H:\wamp\www\test.php on line 6

 

Warning: include() [function.include]: Failed opening 'http://www.google.com' for inclusion (include_path='.;C:\php5\pear') in H:\wamp\www\test.php on line 6

Link to comment
https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-331403
Share on other sites

By default PHP disables url based include paths. To use url based include paths you'll have to enable the allow_url_include setting, by changing the default Off value to On.

 

Note make sure you restart your server (Apache, IIS etc) for the changes you made to the php.ini to come into affect

Link to comment
https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-332146
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.