RE: [PHP-DB] Slash vs BackSlash
| From: | John W. Holmes | Date: | Mon, 07 Apr 2003 10:44:17 +0000 |
| Subject: | RE: [PHP-DB] Slash vs BackSlash | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-26892@lists.php.net to get a copy of this message | ||
> is there a way to write just one version of code both for
> windows based server (with path delimited by \)
> and linux based server (where the paths have /)?
Just use / for everything. Windows will understand. /tmp is the same as
c:\tmp, for example.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/