Page 1 of 1

PHP Includes Error: Warning: include() [function.include]

PostPosted: 20. February 2007 02:26
by betsy

First, thanks for XAMPP -- it is awesome!

I'm using XAMPP v. 1.5.5 on Windows with virtual hosts, and everything is running fine as far as I can tell. However, I'm having a small problem with PHP includes. They work fine on my production site, but on local development I'm getting the error:

Warning: include() [function.include]: URL file-access is disabled in the server configuration...

This only happens for includes using full server path references, i.e.:

<?php include(''); ?>

I have tried adding the following to my php.ini file:

allow_url_fopen = On
allow_url_include = 1

(and also allow_url_include = On)

But, it still isn't working. Any ideas? Is it possible to call remote files in PHP includes on localhost?



PostPosted: 20. February 2007 03:16
by Wiedmann
I have tried adding the following to my php.ini file:

This is the correct "php.ini"?

PostPosted: 20. February 2007 03:40
by betsy
Thanks for the prompt response. I'm editing the php.ini file at:

C:\Program Files\xampp\php\php.ini

Is there a different one?

PostPosted: 20. February 2007 04:28
by Wiedmann
Is there a different one?

Question 6: Where can I change the configuration?

Or just look at phpinfo().

PostPosted: 20. February 2007 07:54
by betsy
So sorry for the trouble because I didn't re-read the basic questions.

Found it in C:\Program Files\xampp\apache\bin\php.ini

Vielen Danke. It works perfectly.