No me funciona file_get_contents

no me sirve este codigo en el servidor online

$search_url = “http://nominatim.openstreetmap.org/search?q=colombia&format=geojson”;

    $httpOptions = [
        "http" => [
            "method" => "GET",
            "header" => "User-Agent: user"
        ]
    ];
    
    $streamContext = stream_context_create($httpOptions);
    $json = file_get_contents($search_url, false, $streamContext);

5 posts - 3 participants

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/no-me-funciona-file-get-contents/4716