Re: Cannot instantiate non-existent class
- From: "julian_m" <julianmaisano@xxxxxxxxx>
- Date: 28 Feb 2006 13:24:02 -0800
Iván Sánchez Ortega wrote:
julian_m wrote:
include("http://IP_of_my_site/inc.php");[...]
to
include($_SERVER['DOCUMENT_ROOT']."/my_site/inc.php");
Anyone could give me some hints?
Use relative paths. And never ever include anything starting with http://
(or https://, or ftp://, for that matter).
include('inc.php');
include('./inc.php');
Yes, I've read previous answer from yourself (googling a little bit) in
which you said exactly the same.
The problem is that i can't include the file in the shared server, even
though I can do in my local server
the following line
include(inc.php);
works as expected in my local server, but fires up this in the shared
server
Warning: main(): open_basedir restriction in effect. File(/inc.php) is
not within the allowed path(s):
(/opt/apache/htdocs:/tmp:/opt/ferozo/suspended.page:/opt/ferozo/etc/suspension)
in /home/ke000067/public_html/test1.php on line 17
Warning: main(/inc.php): failed to open stream: Operation not permitted
in /home/ke000067/public_html/test1.php on line 17
Is there any workaround to this, or I just simply can't include *any*
file?
Note that I've not access to php.ini...
sdos - jm
.
- Follow-Ups:
- References:
- Cannot instantiate non-existent class
- From: julian_m
- Re: Cannot instantiate non-existent class
- From: Iván Sánchez Ortega
- Cannot instantiate non-existent class
- Prev by Date: Re: Problems with mkdir() and is_dir()
- Next by Date: Re: file which tries to find itself and can't...
- Previous by thread: Re: Cannot instantiate non-existent class
- Next by thread: Re: Cannot instantiate non-existent class
- Index(es):