| Shared Hosting Questions about your shared hosting account. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Aug 2007
5 posts
Gave thanks: 0
Thanked 3 times
|
How to turn off magic quotes?
Hi, I cannot figure out how to turn off magic quotes. I searched the forum and it says to edit the php.ini file, but I cannot seem to find this file. Also, the set_magic_quotes functions weren't working for me.
Thanks! |
|
|
|
|
|
#2 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,510 posts
Gave thanks: 21
Thanked 104 times
|
Just make a php.ini file in the public_html directory with the following in it:
Code:
; Magic quotes ; ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = Off ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. magic_quotes_runtime = Off ; Use Sybase-style magic quotes (escape ' with '' instead of \'). magic_quotes_sybase = Off |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jul 2009
1 posts
Gave thanks: 0
Thanked 0 times
|
THANK YOU!
I don't know why but I was having trouble getting any of the magic quote functions to get rid of my obnoxious /' slashes. Modifying the .ini worked! Thanks a ton! I registered just to say thanks, :P |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|