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

Posted by Iv�n S�nchez Ortega on 02/28/06 22:59

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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');

- --
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

Fórmula del condón: No-metil-lacolina-oxi-metil-metila-con-gomina.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEBLmz3jcQ2mg3Pc8RAu6lAJ96DeWHAs3GDjOqy7XFfgGnVQZpFACggDf0
K64neZtGRl5h6vPovRKi/JA=
=R0rM
-----END PGP SIGNATURE-----

 

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

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