You are here: Re: Cannot instantiate non-existent class « PHP Programming Language « IT news, forums, messages
Re: Cannot instantiate non-existent class

Posted by julian_m on 02/28/06 23:24

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация