Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-24-2012, 09:35 AM   #1
Registered: Jun 2006
Location: Ljubljana
Distribution: KUbuntu
Posts: 61

Rep: Reputation: 1
[Ubuntu Server 12.04+PHP Server Side Script+Android Client App]Stripslashes not work!

Dear Sirs and Madams!

I am developing Android app, which relies on getting data from php scripts, which fetch data from mysql database. Now, in one table there are mechandise categories with CategoryName and CategoryPathToIcon fields, the first one is string-categorny name, second one is path to catgegory icon. In php script, I encode twese two string values into json object and then send it to android app. This works ok, however, from php script on Android side I get quoted strings and therefore category picture is not found, since the quoted string, that represents path is not equal as unqouted string (right icon path). Therefore I've used php function stripslashes() function, but with no success.

I use php version:
php --version
PHP 5.3.10-1ubuntu3.1 with Suhosin-Patch (cli) (built: May  4 2012 02:20:36)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
.magic_quotes are disables in php.ini file. Why does stripslashes() not work?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting multiple NFS or Samba shares: client-side or server-side? mariogiov Linux - Server 4 04-03-2012 09:11 AM
How to login multiple client pc on using via openvpn server from client side raja6525 Linux - Networking 1 11-24-2010 10:42 AM
Uploaded files from PHP app are dissapearing on new ubuntu server rgman Linux - Server 4 04-01-2009 03:47 AM
Possible to call a client side command from a script on server, via SSH connection. a2brute Linux - Networking 7 04-07-2008 01:11 PM
x264 Streaming media server & client decompressing on server-side? Pearlseattle Linux - General 2 12-12-2007 12:04 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration