Re: magic_quotes_sybase - Windows MSSQL

From: Date: Thu, 11 Mar 2004 04:01:35 +0000
Subject: Re: magic_quotes_sybase - Windows MSSQL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180096@lists.php.net to get a copy of this message
Hi, Thursday, March 11, 2004, 3:23:20 AM, you wrote: J> My ISP has the following settings in their php.ini file: J> magic_quotes_gpc = ON J> magic_quotes_sybase = OFF J> I am using a Windows Server and a SQL Server database. J> I need to set magic_quotes_sybase to ON so that quotes will be escaped J> with another quote instead of a slash. However, I do not have access J> to the php.ini file. Is there something like the .htaccess file that J> can be used on a Windows server? J> My ISP is using PHP v4.3.0. J> Thank you! J> Jeremy Markman A quick fix is str_replace("'","''",stripslashes($input)); -- regards, Tom

« previous php.general (#180096) next »