Re: Cannot instantiate non-existent class
- From: Iván Sánchez Ortega <i.punto.sanchez--@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 21:59:28 +0100
-----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-----
.
- Follow-Ups:
- Re: Cannot instantiate non-existent class
- From: julian_m
- Re: Cannot instantiate non-existent class
- References:
- Cannot instantiate non-existent class
- From: julian_m
- Cannot instantiate non-existent class
- Prev by Date: Re: file which tries to find itself and can't...
- Next by Date: Re: Problems with mkdir() and is_dir()
- Previous by thread: Re: Cannot instantiate non-existent class
- Next by thread: Re: Cannot instantiate non-existent class
- Index(es):
Relevant Pages
|