dgn96744 Posted September 15, 2006 Share Posted September 15, 2006 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.3I 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 typingprint stripslashes('/test');Windows: /testAIX: testIs there something in my php.ini file that I need to be setting?Much thanks in advance :) Quote Link to comment Share on other sites More sharing options...
btherl Posted September 15, 2006 Share Posted September 15, 2006 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 Link to comment Share on other sites More sharing options...
dgn96744 Posted September 15, 2006 Author Share Posted September 15, 2006 [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 Quote Link to comment Share on other sites More sharing options...
dgn96744 Posted September 15, 2006 Author Share Posted September 15, 2006 Hey btherl,Changing magic_quotes_sybase did the job...I also had previously forgot to restart my Apache.Back in business.Much Mahalo..... David Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.