Re: common.inc probs.
| From: | Mark Maggelet | Date: | Fri, 26 Jan 2001 19:35:48 +0000 |
| Subject: | Re: common.inc probs. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36850@lists.php.net to get a copy of this message | ||
On Fri, 26 Jan 2001 13:37:42 -0500, Shane McBride
(php@riversidedesigns.net) wrote:
>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\";
it's obvious if you look at it, you want:
$UNIX_PATH="d:\\sites\\mercpow\\mp\\images\\";