Error when using php include function -
i'm working on php web application under windows. have many script files placed in respective folders , files needs file named 'connexion.php' situated in root project.
the structure of project follow: projet_beta :
-client (folder): *addclient.php *modifyclient.php *deleteclient.php - connexion.php so, when use include ('../connexion.php') inside 'addclient.php' displays error message :
warning: include(connexion.php) [function.include]: failed open stream: no such file or directory in c:\wamp\www\project_beta\client\addclient.php on line 3.
how can fix problem ? thank's every one.
check in httpd.conf file :
- left click on wamp
- php menu
- open
httpd.conffile - find line starting
documentroot - change line
documentroot "c:/wamp/www/", save file - restart wamp services
then use :
include($_server['document_root'] . '/project_beta/connexion.php');
Comments
Post a Comment