Warning: file_put_contents(sites/nerkn/cache/containers/queryList/select_s_from_pages_where_pageTypeproject1.file.php): failed to open stream: No such file or directory in /home/erkintek/nerkl/inc/classBasic.php on line 247

Warning: file_put_contents(sites/nerkn/cache/containers/queryList/select_s_from_pages_where_pageTypeproject1.file.php): failed to open stream: No such file or directory in /home/erkintek/nerkl/inc/classBasic.php on line 247

Warning: file_put_contents(sites/nerkn/cache/containers/queryList/select_s_from_pages_where_pageTypeknowlagebase1.file.php): failed to open stream: No such file or directory in /home/erkintek/nerkl/inc/classBasic.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at /home/erkintek/nerkl/inc/classBasic.php:247) in /home/erkintek/nerkl/inc/layout.php on line 227
Getting the type of remote file

Nerkn

Php developer, drupal, html, css, jquery, ajax, javascript
s:147:"

Getting the type of remote file

You some time want to learn what type is the remote image, what is the length of remote file. 


the only thing needed is a question to remote server and a receiver to answer our question. 


That receiver is web server!

yes it is true!

you only need to gather the headers of question :
$headers = get_headers( 'http://www.example.com/?num=1');
Yes no one can guess what is that.  Says that :

Array
(
   
[0] => HTTP/1.1 200 OK
   
[1] => Date: Thu, 14 Oct 2010 09:46:18 GMT
   
[2] => Server: Apache/2.2
   
[3] => Last-Modified: Sat, 07 Feb 2009 16:31:04 GMT
   
[4] => ETag: "340011c-3614-46256a9e66200"
   
[5] => Accept-Ranges: bytes
   
[6] => Content-Length: 13844
   
[7] => Vary: User-Agent
   
[8] => Expires: Thu, 15 Apr 2020 20:00:00 GMT
   
[9] => Connection: close
   
[10] => Content-Type: image/png
)
Want any thing else?

";