icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Shared Hosting » How to turn off magic quotes?

Shared Hosting Questions about your shared hosting account.

Reply
 
LinkBack Thread Tools Search this Thread
Old January 27th, 2008, 5:17 PM   #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!
vendiddy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 28th, 2008, 3:59 AM   #2 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
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
__________________
SH102 : Mark Headrick - Blog - Gallery
Pelicar | Company of Valor | Mysstie
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 2nd, 2009, 1:57 AM   #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
Agent_Nothing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On