Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

Special Chars configuration (strip/add slashes)

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

Special Chars configuration (strip/add slashes)

Postby Hadleigh » Thu Sep 18, 2003 9:11 am

I have a problem with an installation of PHP 4.1.2 in that stripslashes are not working correctly. This problem is sporadic and appears to follow no particular pattern.

I am using a competent bespoke CMS to display text on a site and slashes appear within that text where there are none in the MySQL database that it comes from. It's not a problem with a lack of the stripslashes function being present when the echo is performed. I can say this as the CMS has run many sites for over two years without problems. The problem began shortly after my hosting provider upgraded PHP on the server to v 4.1.2.

Also, text posted back to the database inherits slashes where it should not.

Testing on the most simple of platforms through creating a simple table and echoing the results of a query on the table onto the screen leads me to believe it is a configuration problem. On continual refreshes of the page the problem page either normally or abnormally at random intervals after each refresh.

Has anyone heard of this and know a cure?

Thanks,

Hadleigh.
Hadleigh
New php-forum User
New php-forum User
 
Posts: 32
Joined: Tue Feb 04, 2003 10:32 am
Location: UK

Postby Redcircle » Mon Sep 22, 2003 5:41 am

4.1.2??

I would reccomend a push to install the latest version which is 4.3.3

mainly because of security risks when using an outdated software. Your host should jump on the upgrade. If not I would look for another host.
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Re: Special Chars configuration (strip/add slashes)

Postby WiZARD » Fri Sep 26, 2003 5:12 am

i'm agree with Redcircle about PHP version....
try to see in browser, what you have after stripslash, if all ok, see config of MySQL, if not PHP config file....
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 4 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron