473,801 Members | 2,316 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fatal error during include :(

Hello, I am using php5 and I've got this piece of code:

include ('http://something.somew here/file.php?a=act' )

PHP instead of including file five me:

[13-May-2005 12:17:38] PHP Fatal error: Unknown: Security alert:
Include filename is an URL in Unknown on line 0
My php.ini contains:

safe_mode = Off
allow_url_fopen = On

<? phpinfo() ?> shows that this values are correct.
Why it is happens? What can I do?

Cheers,

--
Rafal Bluszcz Zawadzki
JabberPL.org SysAdmin
----------------------
Jul 17 '05 #1
4 1918
Rafal Zawadzki wrote:
Hello, I am using php5 and I've got this piece of code:

include ('http://something.somew here/file.php?a=act' )
This really can't be done. Only local files can be included.
PHP instead of including file five me:

[13-May-2005 12:17:38] PHP Fatal error: Unknown: Security alert:
Include filename is an URL in Unknown on line 0
This message says what I said before.

My php.ini contains:

safe_mode = Off
allow_url_fopen = On
fopen says it all. This means php allows you to open a file from a URL.

So if you want to read a remote file use fopen.
<? phpinfo() ?> shows that this values are correct.
Why it is happens? What can I do?

Cheers,


Jul 17 '05 #2
Azeus <IF************ *************@m p.com> wrote:
include ('http://something.somew here/file.php?a=act' )


This really can't be done. Only local files can be included.


Really? Then the manual should be fixed:
http://nl3.php.net/include/
'If "URL fopen wrappers" are enabled in PHP (which they are in the
default configuration), you can specify the file to be included using a
URL (via HTTP or other supported wrapper - see Appendix L for a list of
protocols) instead of a local pathname.'
PHP instead of including file five me:

[13-May-2005 12:17:38] PHP Fatal error: Unknown: Security alert:
Include filename is an URL in Unknown on line 0


This message says what I said before.


Maybe not:
http://nl3.php.net/include/
"Warning

Windows versions of PHP prior to PHP 4.3.0 do not support accessing
remote files via this function, even if allow_url_fopen is enabled."
My php.ini contains:

safe_mode = Off
allow_url_fopen = On


fopen says it all. This means php allows you to open a file from a URL.

So if you want to read a remote file use fopen.


So example 16-7 on http://nl3.php.net/include/ is wrong?

Jul 17 '05 #3
According to your description of settings and code, it should work.
Include can in fact include remote files. Have you tried other URL's
that will work, such as google.com?

Jul 17 '05 #4
Your copy of PHP has the Hardened-PHP patch. Including of URLs is
disabled, period.

There is no legitimate reason to include a URL. Doing so is almost
always a mistake. If you want to show the contents of a web page, use
readfile().

Jul 17 '05 #5

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

Similar topics

0
306
by: Ronnie P | last post by:
The computer hang during installion of .NET Framework 1.1 SP 1. After restart and try ta new installion, I get the message fatal error during installation ,internal error 3711.S867460. I get the same message when i try to remove .NET Framework 1. How to resolve this problem ?
0
1722
by: JimmyS | last post by:
I am getting this error .. c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stl_alloc.h(305) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701) when including any files for templates .. #include <fstream> , #include <string>, #include <vector>, #include <list> etc... The funny thing is that was not happening before, it really used to work fine with templates. By removing the STL include...
3
3205
by: Ann | last post by:
I am getting this fatal error, whenever I try to include the rfidDataManager.h compiling... helloimpl.c C:\Program Files\Microsoft Visual Studio\MyProjects\RFIDNov1\HelloTrial\helloimpl.c(4) : fatal error C1083: Cannot open include file: 'RfidDataManager.h': No such file or directory Error executing cl.exe.
1
2162
by: Vishal Saxena | last post by:
Hi, I am new to this news group, hope to get prompt solution from you, gurus of VC. Well i had a project developed in VC++ 6.0, it uses Adobe Plugin Development SDK, I am trying to upgrade my project to VC++.NET, below is the code snipplet from the project
4
3059
by: cgparis | last post by:
Dear forum members, I am trying to compile C++ code under MS Visual Studio .NET 2003, which references the latest Xerces C++ release library (2.6.0). This Xerces release was made available recently by the Apache organization. I've defined a system variable on windows as follows: XERCESCROOT: <...>\xerces-c_2_6_0-windows_nt-msvc_60
8
10698
by: Seeker | last post by:
Hello, In using Solaris Pro Compiler to compile Pro*C code. I am getting this error: make: Fatal error in reader: parser_proc_online.mk, line 26: Badly formed macro assignment Based on other posts, this error is not related to C but related more to my lack of understanding. When I look for line 26 in my make file, it does not correlate to a MACRO assignment. Should I count blank or
1
5886
by: BobPitbull | last post by:
When doing a "Whole Program Optimization" release build, I get the following error during LINK:- Searching \main\Binaries\lib\pc_retail\AAALibs.lib: LINK : fatal error LNK1000: Internal error during LIB::Search Version 7.10.3077 ExceptionCode = C0000005
3
4207
by: Dhieraj | last post by:
While compiling a C++ code I am getting the following error : CC -c -I/opt/iona/artix/2.0/include -I/opt/iona/asp/6.0/include -I/opt/ar/api63/include -I//var/tmp/vidya/aotscommon/include -I//var/tmp/coe/coesup2.0b17/include -I/opt/oracle/product/9.2.0.5.0/rdbms/demo -I/opt/oracle/product/9.2.0.5.0/rdbms/public -I/opt/oracle/product/9.2.0.5.0/plsql/public -I/opt/oracle/product/9.2.0.5.0/network/public ...
2
2055
by: leisablu | last post by:
Hello, Im not good in scrpting, its like readind jibberish...lol...My problem is im trying to convert my phpbb 2.0 to phpbb 3.0 and im getting 1 500 internal error and to check my PHP error log. whrn i do im getting this reading: PHP Fatal error: Class 'acm' not found in /hermes/bosweb/web272/b2724/ipw.bashment/public_html/phpBB3/includes/cache.php on line 23 PHP Warning: include() : Failed opening './../includes/acm/acm_file.php' for...
0
9555
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10515
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10291
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10049
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9100
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6827
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4156
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3771
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2956
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.