- file_get_contents work with direct typed url and not with automatically obtained url
- $url = $result_from_webservice->url;
- if( file_get_contents( $url ) ){
- echo 'ok';
- }
- else{
- echo 'error';
- }
- echo $result_from_webservice->url;
- $url = 'https://site.com/page.php?foo1=bar1&foo2=bar2';
- $url = $result_from_webservice->url;
- $url = urldecode( $url );
- $url = (string)$result_from_webservice->url;