Php configuration - include path problem
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Php configuration - include path problem

From: alex <alex@nospam.org>
Date: Wed Mar 08 2006 - 18:12:03 CET

Hi,

I've got a php script located at : http://localhost/browse/script.php
This script is "URL-rewrited" as http://localhost/welcome.htm

This script includes other scripts with the following code :

<?php
include("../inc/connect.php") ;
...
?>

When I directly type : http://localhost/browse/script.php => it works
As when I go to : http://localhost/welcome.htm => Error could not find
"../inc/connect.php" !!

I've just changed my apache/php/mysql conf (and unfortunately lost the one I
had before) : I switched to xampp.
This script used to work perfectly before :-( !!!
I do understand that paths are different for the client code but I don't
understand why it could be the same with server code !
I suspect Apache / Php conf to be the cause of my problem... but I can't
find out !
Can you help me, it's quite importante.

Thanks in advance,

-- 
alex
Received on Mon May 1 02:29:29 2006