Re: [PHP] Windows/UNIX differences?

2001-11-02 Thread Mark
are you using two single quotes when you want a double quote? also you should probably be using str_replace for this since there's no regular expressions here. On Fri, 02 Nov 2001 22:26:07 +0100, Ben Edwards wrote: >Have a regular expression which replaces ' with '' (used to insert ' >into db): >

[PHP] Windows/UNIX differences?

2001-11-02 Thread Ben Edwards
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