473,394 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

include() not working properly

I've been running a XAMPP server for some time now, but I just tried to add
an include, and it says:

Warning: include() [function.include]: URL file-access is disabled in the
server configuration in M:\Server\htdocs\desktop\search.php on line 12

Warning: include(http://www.google.com) [function.include]: failed to open
stream: no suitable wrapper could be found in
M:\Server\htdocs\desktop\search.php on line 12

Warning: include() [function.include]: Failed opening
'http://www.google.com' for inclusion (include_path='.;M:\Server\php\pear\')
in M:\Server\htdocs\desktop\search.php on line 12

I have opened up php.ini, and set allow_url_include = On . allow_url_fopen
was already allowed. Yet whenever I run phpinfo(), it reports that
allow_url_include is Off both locally and in the master. I have already
changed php.ini, and restarted the server, but it does nothing. Any
suggestions?

Matt

May 19 '07 #1
1 2430
To answer your question literally, open up your phpinfo() file and
ensure that the php.ini file you are editing is indeed the one being
used by the interpreter (on Windows systems, its easy to get multiple
php.ini files lying around).

However, you should not be remotely including files: doing so is an
incredibly bad idea, both from a security and performance standpoint.
If you are scraping Google's front page, use fopen or curl to retrieve
the file, and then echo it to the user. include() will allow remote
code execution on your computer.

HTML Purifier <http://htmlpurifier.orgStandards-compliant filtering

May 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Zaan | last post by:
www.entropy.ch release for Mac OS X.] Hello, My issue is the following: to promote consistency on a site I'm building, I decided to go for a php scheme where some recurring elements...
11
by: Yannick Turgeon | last post by:
Oups! I did a typing error in my last post. Fixed. ----------- Hello all, We are currently changing our web server and, in the process, updating PHP version from 4.3.0 to 4.3.5. The problem...
2
by: Nick Craig-Wood | last post by:
We are currently investigating whether to move the data files from our application into python for ease of maintenance. Each data item turns into a class definition with some class data. The...
4
by: qbproger | last post by:
I'm developing a plugin for some software. The previous version of the software didn't require a start in directory to be set. This allowed me to leave the working directory to the default in the...
3
by: RobertS | last post by:
I'm trying to figure out what I need to do to configure IIS 5.1 on XP Pro to work when referencing WebResources.axd. For example, I have an aspx script that works fine when run from Visual Web...
5
by: jauiek | last post by:
Hello, I have been trying to learn PHP and have been spending all day trying to solve this "simple" problem. I am using Mac OS X 10.4. I am trying to create a site for myself that gets me out of...
8
by: dpinion | last post by:
Greetings, I have the following: require_once($_SERVER."/virtuals/doc-root.php4"); I also have several more include and include once that pull various sections into my main page. I am trying...
3
by: =?Utf-8?B?VG9kZCBEb2JtZXllcg==?= | last post by:
I am working on developing a program using Visual Studio 2003 but am having problems getting my program to find my GL.h and GLU.h, and I am guessing it will have the same problems trying to link to...
25
by: Mark | last post by:
so, i'm making a website. let's say i have header.php, footer.php and content.php. now in index.php I simply want to include the 3 pages. easy enough to do. but let's say the user navigates to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.