Re: Cannot instantiate non-existent class




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

.