Jump to content

stripslashes not working in windows


dgn96744

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 :)
Link to comment
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 )
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.