Why Does Output From Php Have \'s In It?, I see \'s in SQL and HTMP output from PHP how do I remove it? |
Why Does Output From Php Have \'s In It?, I see \'s in SQL and HTMP output from PHP how do I remove it? |
Jun 14 2006, 06:34 PM
Post
#1
|
|
WSF Commander Group: Admin Posts: 4,662 Joined: 26-August 05 Member No.: 10 |
SYMPTOMS
I see \'s in SQL and HTMP output from PHP and it causes the SQL to error and the HTML to display incorrectly. CAUSE Your host has turned on "magic quotes". This is a feature of little value and only causes confusion. Consequently most hosting companies do not switch this feature on. SOLUTION There are three solutions: 1. Turn it off by adding the following to your .htaccess file: CODE php_flag magic_quotes_gpc off 2. Ask your host to switch it off in the PHP.ini file. 3. If your host blocks the use of .htaccess files (very few do) and will not change the PHP.ini so that magic quotes are NOT used then the only option is to switch hosting companies. |
|
|
May 13 2007, 01:50 PM
Post
#2
|
|
WSF Professional Group: PM Unlimited Posts: 927 Joined: 4-May 07 From: Phoenix, AZ Member No.: 1,089 Exchanges: |
Richard,
I have the same problem. I found a workaround that you can use. If you have phpMyAdmin on your site you can edit the block directly in the database. After activating phpMyAdmin find the table vtp_blocks. You can edit out the \\\ directly from this table. Just delete them and then make sure the radio button marked Save is checked, and click the Go button. This will return your ISB block to the original. -------------------- |
|
|
Lo-Fi Version | Time is now: 19th April 2024 - 01:40 PM |