Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7419115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:00:15+00:00 2026-05-29T08:00:15+00:00

In my Android application I make a HTTP POST connection: serverresponse = CustomHttpClient.executeHttpPost(url, postParameters);

  • 0

In my Android application I make a HTTP POST connection:

serverresponse = CustomHttpClient.executeHttpPost(url, postParameters);

All working fine. The url is pointing to a php page on my server. It echos an array of image urls in JSON format like this:

[".\/pictures\/q\/thumbnails\/28052011172.jpg",".\/pictures\/q\/thumbnails\/picca1.jpg",".\/pictures\/q\/thumbnails\/lockscreen_006.jpg"]

What I want to do is also echo the size of directory. That works fine too, but that puts it right after the JSON array, like so:

echo (json_encode($files));
echo (filesize_r($path));

[".\/pictures\/q\/thumbnails\/28052011172.jpg",".\/pictures\/q\/thumbnails\/picca1.jpg",".\/pictures\/q\/thumbnails\/lockscreen_006.jpg"]4223566

4223566 is the number of bytes. In my application I want to split these two values into different strings so I can use them.

In short, I want to separate these two php echos. I don’t want to make two separate HTTP connections for both of them.

Sorry if my question isn’t clear enough, I sometimes have a hard time explaining stuff in English.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:00:16+00:00Added an answer on May 29, 2026 at 8:00 am

    Could you not just make one json object which contains the two values your require?

    e.g.

    $response = array(
        'pictures'=>$files,
        'filesize'=> filesize_r($path)
    );
    echo json_encode($response);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I make Android application which must receive data from the page http://example.com/get.php?id=1 . For
I am trying to make an FBconnect application. I got a link http://www.mobisoftinfotech.com/blog/android/845/ From
I want to make an android application that shows a listing of applications (downloaded
I want to make some changes to the stock Mms Android application and install
im trying to make an android application that whenever a user conncects to a
I am working on an Android application which is supposed to play videos over
For my application i make a bluetooth discovery search to list all available bluetooth
I'm trying to make an OAuth 2.0 Provider and an Android application that is
I'm working on an Android application that will send MMS internally without using the
I am due to make an android application which sends and recieves data from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.