Jump to content


Photo

stripslashes not working in windows


  • Please log in to reply
3 replies to this topic

#1 dgn96744

dgn96744
  • New Members
  • Pip
  • Newbie
  • 3 posts
  • LocationKaneohe, Hawaii

Posted 15 September 2006 - 05:47 AM

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 :)

#2 btherl

btherl
  • Staff Alumni
  • Advanced Member
  • 3,893 posts
  • LocationAustralia

Posted 15 September 2006 - 06:09 AM

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/m...tripslashes.php )

#3 dgn96744

dgn96744
  • New Members
  • Pip
  • Newbie
  • 3 posts
  • LocationKaneohe, Hawaii

Posted 15 September 2006 - 06:13 AM

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/m...tripslashes.php )

Oh yeah, sorry I typed it wrong...
I'll try checking out the magic_quotes_sybase and get back

#4 dgn96744

dgn96744
  • New Members
  • Pip
  • Newbie
  • 3 posts
  • LocationKaneohe, Hawaii

Posted 15 September 2006 - 06:23 AM

Hey btherl,
Changing magic_quotes_sybase did the job...
I also had previously forgot to restart my Apache.
Back in business.

Much Mahalo.....
David




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users