RE: magic quotes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Talking about .htaccess, anyone know an easy way of configuring os
(generally linux/windows) alternative settings in the same .htaccess ?
Mainly for paths (eg: include_path), so I can just upload a whole directory
at a time from my (Windows) development machine to a (Linux) production
server without having to worry about different .htaccess files for each.

Ta
Steve

-----Original Message-----
From: Richard Heyes [mailto:richardh@xxxxxxxxxxx] 
Sent: 17 July 2007 12:25
To: Phil Princely
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  magic quotes

> What do people on this list usually do with this kind of problem. To 
> me, the .htaccess seems the easiest solution, since I don't have to 
> change any scripts.

Use a .htaccess file, or if performance is any sort of concern, put it in
the server configuration files and turn off .htaccess files.

Failing that you could do it in the script with your
stripslashes_array() function, but you should only do it when you need to.
eg. There's no point using it on $_COOKIE if you're not using $_COOKIE.

--
Richard Heyes
+44 (0)844 801 1072
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux