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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby betsy » 20. February 2007 02:26

Hi,

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('http://www.mysite.com/includethisfile.txt'); ?>

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?

Thanks,

Betsy
betsy
 
Posts: 3
Joined: 20. February 2007 01:52

Postby Wiedmann » 20. February 2007 03:16

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

This is the correct "php.ini"?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby betsy » 20. February 2007 03:40

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?
betsy
 
Posts: 3
Joined: 20. February 2007 01:52

Postby Wiedmann » 20. February 2007 04:28

Is there a different one?

Sure:
Question 6: Where can I change the configuration?

Or just look at phpinfo().
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby betsy » 20. February 2007 07:54

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.

Betsy
betsy
 
Posts: 3
Joined: 20. February 2007 01:52


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 118 guests