ktalebian Posted July 12, 2007 Share Posted July 12, 2007 Hey So I installed the latest WAMP5 program, but the PHP include function is not configured! how do I configurate that? Quote Link to comment https://forums.phpfreaks.com/topic/59552-wamp-17ish/ Share on other sites More sharing options...
trq Posted July 12, 2007 Share Posted July 12, 2007 What exactly do you meen... not configured? You can set the include path using the include_path directive within your php.ini if thats what you meen. Quote Link to comment https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-295990 Share on other sites More sharing options...
ktalebian Posted July 12, 2007 Author Share Posted July 12, 2007 No i mean why I use include function, it gives an error and it says that it is not configured! Quote Link to comment https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-296081 Share on other sites More sharing options...
wildteen88 Posted July 12, 2007 Share Posted July 12, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-296529 Share on other sites More sharing options...
ktalebian Posted August 22, 2007 Author Share Posted August 22, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-331403 Share on other sites More sharing options...
wildteen88 Posted August 23, 2007 Share Posted August 23, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-332146 Share on other sites More sharing options...
ktalebian Posted August 24, 2007 Author Share Posted August 24, 2007 Hi, and thank you for the reply. Ok, but where is that "allow_url_include"? Cause I checked php.ini but it was not there! Thank you Quote Link to comment https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-332801 Share on other sites More sharing options...
wildteen88 Posted August 24, 2007 Share Posted August 24, 2007 What version of PHP5 do you have? The allow_url_include setting was added in version 5.2.x If you have a version lower than 5.2.x then you'll want to enabled allow_url_fopen instead. Quote Link to comment https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-333217 Share on other sites More sharing options...
ktalebian Posted August 28, 2007 Author Share Posted August 28, 2007 I had the allow_url_fopen. I changed it to on, but it still does not work! Quote Link to comment https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-336020 Share on other sites More sharing options...
wildteen88 Posted August 28, 2007 Share Posted August 28, 2007 Have you been restarting WAMP when you make any changes to the php.ini? You must restart WAMP in order for the changes you have made to come into affect. Quote Link to comment https://forums.phpfreaks.com/topic/59552-wamp-17ish/#findComment-336426 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.