common.inc probs.

From: Date: Fri, 26 Jan 2001 18:37:42 +0000
Subject: common.inc probs.
Groups: php.general 
Request: Send a blank email to php-general+get-36839@lists.php.net to get a copy of this message
I have a script that pulls in the following file via: require 'common.inc' The problem occurs when it hits the $UNIX_PATH variable. At least I think that's where it creates a problem. If I comment it out it works fine, but I of course need that variable. First of all I created a script that creates this file and I don't understand why it doubled the backslashes in the $UNIX_PATH variable. Secondly, why it is crapping out on the double backslashes? I thought PHP would use the first one as an escape character. As a side note: I know the example shown here shows a windows path for the unix path variable, I'm trying to port this over to winders.. :-0 <? $DB_SERVER="localhost"; $DB_LOGIN="shane"; $DB_PASSWORD="whatever"; $DB_NAME="test"; $HTTP_HOST="localhost"; $AUTH_USER="admin"; $AUTH_PASS="installme"; $CO_NAME="RDI Technologies"; $EMAIL="shane@rditech.net"; $UNIX_PATH="d:\\sites\\mercpow\\mp\images\"; $WWW_PATH="http://localhost/mp/images/$image"; $DOC_ROOT="mp"; $ADMINROOT="admin"; ?> TIA- -Shane

« previous php.general (#36839) next »