Re: New at PHP; easy question!?
| From: | Martin | Date: | Thu, 14 Sep 2000 07:55:30 +0000 |
| Subject: | Re: New at PHP; easy question!? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16735@lists.php.net to get a copy of this message | ||
You got to escape "\" as "\\", because \ defines that the next-char is a
special-char.
Kraa de Simon wrote:
>
> Hi,
>
> Need to convert the directory location from UNIX notation to WIN32.
>
> When I just convert / to \ I get a parse error on the line with DIR_CATALOG.
>
> Parse error: parse error in includes\application_top.php on line 7
>
> How come?
>
> <?
> // define our webserver variables
> define('HTTP_SERVER', 'http://exchange');
> define('HTTPS_SERVER',
> 'https://exchange');
> define('ENABLE_SSL', 1); // ssl server enable(1)/disable(0)
> define('DIR_SERVER_ROOT', '/usr/local/apache/');
> define('DIR_CATALOG', '/catalog/');
> define('DIR_IMAGES', '/catalog/images/');
> define('DIR_INCLUDES', 'includes/');
> define('DIR_BOXES', DIR_INCLUDES . 'boxes/');
> define('DIR_FUNCTIONS', DIR_INCLUDES . 'functions/');
> define('DIR_MODULES', DIR_INCLUDES . 'modules/');
> define('DIR_LANGUAGES', DIR_INCLUDES . 'languages/');
>
> Met vriendelijke groet / With kind regards,
>
> Simon de Kraa
> ICL Logistic Systems
> Simon.de.Kraa@icl.nl
>
> ---
>
> Microsoft Windows 2000 Professional SP 1, Progress 9.1a19, Roundtable 9.1a
> SCO UnixWare 7.1.1, Progress 9.1a11
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
Martin
Kraa de Simon wrote:
>
> Hi,
>
> Need to convert the directory location from UNIX notation to WIN32.
>
> When I just convert / to \ I get a parse error on the line with DIR_CATALOG.
>
> Parse error: parse error in includes\application_top.php on line 7
>
> How come?
>
> <?
> // define our webserver variables
> define('HTTP_SERVER', 'http://exchange');
> define('HTTPS_SERVER',
> 'https://exchange');
> define('ENABLE_SSL', 1); // ssl server enable(1)/disable(0)
> define('DIR_SERVER_ROOT', '/usr/local/apache/');
> define('DIR_CATALOG', '/catalog/');
> define('DIR_IMAGES', '/catalog/images/');
> define('DIR_INCLUDES', 'includes/');
> define('DIR_BOXES', DIR_INCLUDES . 'boxes/');
> define('DIR_FUNCTIONS', DIR_INCLUDES . 'functions/');
> define('DIR_MODULES', DIR_INCLUDES . 'modules/');
> define('DIR_LANGUAGES', DIR_INCLUDES . 'languages/');
>
> Met vriendelijke groet / With kind regards,
>
> Simon de Kraa
> ICL Logistic Systems
> Simon.de.Kraa@icl.nl
>
> ---
>
> Microsoft Windows 2000 Professional SP 1, Progress 9.1a19, Roundtable 9.1a
> SCO UnixWare 7.1.1, Progress 9.1a11
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net