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 :

  1. left click on wamp
  2. php menu
  3. open httpd.conf file
  4. find line starting documentroot
  5. change line documentroot "c:/wamp/www/" , save file
  6. restart wamp services

then use :

include($_server['document_root'] . '/project_beta/connexion.php'); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -