Seperate HTTP connection results (PHP echo)
<p>In my Android application I make a HTTP POST connection:</p>

<pre><code>serverresponse = CustomHttpClient.executeHttpPost(url, postParameters);
</code></pre>

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

<p><code>[".\/pictures\/q\/thumbnails\/28052011172.jpg",".\/pictures\/q\/thumbnails\/picca1.jpg",".\/pictures\/q\/thumbnails\/lockscreen_006.jpg"]</code></p>

<p>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:</p>

<pre><code>echo (json_encode($files));
echo (filesize_r($path));
</code></pre>

<p><code>[".\/pictures\/q\/thumbnails\/28052011172.jpg",".\/pictures\/q\/thumbnails\/picca1.jpg",".\/pictures\/q\/thumbnails\/lockscreen_006.jpg"]4223566</code></p>

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

<p>In short, I want to seperate these two php echos. I don't want to make two seperate HTTP connections for both of them.</p>

<p>Sorry if my question isn't clear enough, I sometimes have a hard time explaining stuff in English.</p>
