Re: RE: include("/dir/archivo.php3");
| From: | Jorge Fuertes Alfranca | Date: | Wed, 13 Feb 2002 18:12:47 +0000 |
| Subject: | Re: RE: include("/dir/archivo.php3"); | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-19147@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Es otra opción... que trabajaría con paths absolutos... yo prefiero
> trabajar con relativos...
Bueno, el $DOCUMENT_ROOT es un path relativamente absoluto.
> en ese caso iria como
> <? include ($DOCUMENT_ROOT . "/includes/fichero_include.php") ; ?>
>
o como:
<?php
include "$DOCUMENT_ROOT/includes/fichero_include.php";
?>
Saludos.
- --
_____________________________________________________
Jorge Fuertes - Mutua MAZ - Administrador del sistema
jfuertes@maz.es - 976748000/1733 - http://www.maz.es
Llave pública PGP: http://www.maz.es/gpg
*Utilize el correo-E* - Linux Registered User: 170191
_____________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8aqyfONJ1M6QsupQRAvTqAKCfy8CR4U+wR6AXBhn1jMU52jlshgCaA4lm
hMzHedGE9QqIWUvV/5gqJxc=
=rhq4
-----END PGP SIGNATURE-----