Windows/UNIX differences?

From: Date: Fri, 02 Nov 2001 21:26:07 +0000
Subject: Windows/UNIX differences?
Groups: php.general 
Request: Send a blank email to php-general+get-73301@lists.php.net to get a copy of this message
Have a regular expression which replaces ' with '' (used to insert ' into db): preg_replace("/\'/", "''", $text ); This works great on the UNIX production machine but not on windows development environment. Actually replaces ' with \'' not ''. Before I write a function that loops thought the whole thing looking at each character and replaces ' with '' has anybody got any ideas? Ben **************************************************************
* Ben Edwards                                +352 091 429995 *
* Homepage                http://www.gifford.co.uk/~bedwards *
* i-Contact Progressive Video    http://www.videonetwork.org *
* Smashing the Corporate image     http://www.subvertise.org *
* Bristol's radical news            http://www.bristle.co.uk *
* PGP : F0CA 42B8 D56F 28AD 169B 49F3 3056 C6DB 8538 EEF8 * **************************************************************

« previous php.general (#73301) next »