note 20736 added to function.ereg-replace
| From: | mmtach at yahoo dot com | Date: | Sun, 14 Apr 2002 20:04:42 +0000 |
| Subject: | note 20736 added to function.ereg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29298@lists.php.net to get a copy of this message | ||
found problem:
$path = ereg_replace("\\", "/", $path); //dos path to unix
gives warning error: "EREG_EESCAPE"
this does work:
$path = ereg_replace("[\\]", "/", $path);
--
http://www.php.net/manual/en/function.ereg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+20736
http://master.php.net/manage/user-notes.php?action=delete+20736
http://master.php.net/manage/user-notes.php?action=reject+20736