LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-24-2012, 08:35 AM   #1
MarkoSan
Member
 
Registered: Jun 2006
Location: Ljubljana
Posts: 57

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:
Code:
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?

Sincerely,
Marko
 
  


Reply


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 08:11 AM
How to login multiple client pc on using via openvpn server from client side raja6525 Linux - Networking 1 11-24-2010 09:42 AM
Uploaded files from PHP app are dissapearing on new ubuntu server rgman Linux - Server 4 04-01-2009 02:47 AM
Possible to call a client side command from a script on server, via SSH connection. a2brute Linux - Networking 7 04-07-2008 12:11 PM
x264 Streaming media server & client decompressing on server-side? Pearlseattle Linux - General 2 12-12-2007 11:04 AM


All times are GMT -5. The time now is 06:07 PM.

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