| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 579
![]() ![]() | Stripslashes Hey, been using addslashes and stripslashes all this time but I've been told this is wrong. Can anyone give me the low-down on magicquotes? Thanks
__________________ SQL Dumpster - SQL Database Dumps and Resources |
| |
| | #2 (permalink) |
| Senior Member Join Date: Dec 2004
Posts: 1,304
![]() ![]() ![]() ![]() ![]() | If you want to understand it better, you should readthis
__________________ You got no time for the messenger, got no regard for the thing that you don't understand, you got no fear of the underdog, that's why you will not survive! |
| |
| | #3 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,963
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Simply put magic quotes are the bane of PHP. To make things worse magic quotes settings can vary from one server to another. Please note that since PHP 4.0x magic quotes are disabled by default. Of course people on a shared server do not have access to the PHP config file so it's best practice to design portable code so you don't depend on server-specific settings. ????: NamePros.com http://www.namepros.com/programming/170544-stripslashes.html I use this piece of code in a config file (as an include at the beginning of my scripts) so as to avoid finding unwanted \ in my form requests ![]() PHP Code:
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |
| | THREAD STARTER #4 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 579
![]() ![]() | Thanks for the help guys..and girls
__________________ SQL Dumpster - SQL Database Dumps and Resources |
| |
| | #5 (permalink) |
| NamePros Member Join Date: Feb 2006
Posts: 36
![]() | well I always use this function at the beginning of scripts: PHP Code: |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how can i have multiple stripslashes in mail script? | sedokill | Programming | 3 | 09-24-2005 04:26 PM |
| Wierd stripslashes() error. | mholt | Programming | 0 | 09-05-2005 12:04 PM |