Re: Cannot instantiate non-existent class
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Cannot instantiate non-existent class

From: julian_m <julianmaisano@gmail.com>
Date: Tue Feb 28 2006 - 22:24:02 CET

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
Received on Mon May 1 02:23:54 2006