[Solved] Getting blank array from web service


Use urlencode()

This is working now :

<?php
    $post_name="BSN Syntha-6 Isolate";
    $base = "http://52.53.227.143/API_test.php?post_name=" . urlencode($post_name);
    $str = file_get_contents($base);
    echo '<pre>';
    print_r(json_decode($str));
?>

2

solved Getting blank array from web service