I dont know if its php or sql related.......?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Laredo
Forum Newbie
Posts: 3
Joined: Thu Mar 13, 2003 10:24 am

I dont know if its php or sql related.......?

Post by Laredo »

I dont know if its php or sql related but I am hoping someone here has seen this problem before.
All of a sudden ( after an apache restart ) this is what I am seeing in random news article, flashes weblinks etc. on my website
( its an opensource cms called mambo )
\"on plan\". see the slashes around the quotes? those are not supposed to be there.
Also most anything that starts with an href=" instead looks like
href=\\"
anyone have any ideas? I am sure its not a Mambo problem ( it is also happening in my Squirrelmail ), but that I have some how screwed up my php .ini fileor maybe even my sql install somehow.
Thanks

Brian Knoblock
User avatar
protokol
Forum Contributor
Posts: 353
Joined: Fri Jun 21, 2002 7:00 pm
Location: Cleveland, OH
Contact:

Post by protokol »

User avatar
d1223m
Forum Commoner
Posts: 80
Joined: Mon Mar 31, 2003 5:15 am
Location: UK, West Sussex

Post by d1223m »

there is that php.ini option for auto doing that isnt there?
pootergeist
Forum Contributor
Posts: 273
Joined: Thu Feb 27, 2003 7:22 am
Location: UK

Post by pootergeist »

the little switches in the .ini for autoslashing quoted strings are called magic_quotes - maybe try switching _gpc on if it isn't already.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

pootergeist wrote:the little switches in the .ini for autoslashing quoted strings are called magic_quotes - maybe try switching _gpc on if it isn't already.
Although if you don't want things quoted then you may want to turn it off... In fact turn it off anyway and use addslashes() when you need to escape special characters in strings and don't do anything if you don't.

Mac
Post Reply