Re: Include

From: Date: Wed, 14 Feb 2001 04:38:33 +0000
Subject: Re: Include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39582@lists.php.net to get a copy of this message
you should try the setting for include_path in php.ini as include_path =" /usr/share/php:./" note the addition of './' in the include path. this would allow php to include the files in the current directory as well, which is the case I guess with the phorum scripts. regards best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India ----- Original Message ----- From: "Fabian Fabela" <php@vacagorda.com> To: <php-general@lists.php.net> Sent: Tuesday, February 13, 2001 11:08 PM Subject: [PHP] Include Hello, I have php 4.0.3pl1. I am trying to install phorum (phorum.org). In a php file (index.php in admin) there is the function include for a file (common.php), I get the following error. Warning: Failed opening 'common.php' for inclusion (include_path='/usr/share/php') in /home/web/vacagorda/jeans/htdocs/foro/administration/index.php on line 28 Why I can't include that file without putting it in the /usr/shar/php diretory? Thank you Fabian Fabela fabian@fabela.com.mx "La información transmitida en el presente mensaje tiene la intención de estar dirigida únicamente a la persona o entidad que se refiere y puede contener información privilegiada y/o confidencial. Cualquier, revisión, retransmisión, diseminación o cualquier uso impropio o relacionado con dicha información por persona alguna distinta a la que fue dirigido este mensaje queda estrictamente prohibido. Si Usted ha recibido este mensaje o sus anexos por error, favor de contactar al remitente y elimine el material de cualquier computadora." "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer."

« previous php.general (#39582) next »