Jump to content

WAMP 1.7ish


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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.