Jump to content

Archived

This topic is now archived and is closed to further replies.

dgn96744

stripslashes not working in windows

Recommended Posts

Ok, first time here, but been developing in PHP for about a year.

I am developing on my laptop (running Windows 2000 Server) for a customer running off an AIX box.
I am using PHP 4.3.3

I recently found out that a portion of code with the function "stripslashes()" works fine when running off the AIX box, but the same script does not work when run on my laptop.

I just tested again by just typing
print stripslashes('/test');
Windows: /test
AIX: test

Is there something in my php.ini file that I need to be setting?

Much thanks in advance :)

Share this post


Link to post
Share on other sites
stripslashes() is supposed to remove backslashes, not slashes.  Was your example supposed to be with a backslash?

The manual says that the function's behaviour is affected by a configuration directive magic_quotes_sybase ( http://www.php.net/manual/en/function.stripslashes.php )

Share this post


Link to post
Share on other sites
[quote author=btherl link=topic=108134.msg434631#msg434631 date=1158300574]
stripslashes() is supposed to remove backslashes, not slashes.  Was your example supposed to be with a backslash?

The manual says that the function's behaviour is affected by a configuration directive magic_quotes_sybase ( http://www.php.net/manual/en/function.stripslashes.php )
[/quote]
Oh yeah, sorry I typed it wrong...
I'll try checking out the magic_quotes_sybase and get back

Share this post


Link to post
Share on other sites
Hey btherl,
Changing magic_quotes_sybase did the job...
I also had previously forgot to restart my Apache.
Back in business.

Much Mahalo.....
David

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.