Jump to content

Get image headers


sandy1028

Recommended Posts

In the DB image is stored. How to get the image headers from the Db value.

 

The output should look like

Array ( [0] => HTTP/1.1 200 OK [1] => Date: Mon, 07 Jun 2010 06:40:46 GMT [2] => Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8l mod_onsint/1.0 [3] => Last-Modified: Wed, 19 May 2010 19:18:51 GMT [4] => ETag: "728dbb-6fd0-53fd5cc0" [5] => Accept-Ranges: bytes [6] => Content-Length: 2862 [7] => Content-Type: image/jpeg [8] => [9] => ) 

Link to comment
https://forums.phpfreaks.com/topic/204071-get-image-headers/
Share on other sites

Array ( [0] => Image Object ( [Key:protected] => Key Object ( [id:protected] => 19 [name:protected] => image [reportable:protected] => [value:protected] => �����JFIF��������XPhotoshop 3.0�8BIM����<x6RINGING IN THE SEASON - The La Ca�ada Towne singers, under the direction of Sean Boulware, will be performing its annual holiday concert on Dec. 4 and 5 in Lanterman Auditorium. The group, with the help of some dancing reindeer, will take a comical look at the trials and tribulations of holiday shopping.�����&File written by Adobe Photoshop� 5.2���C�    $.' ",#(7),01444'9=82<.342���C  2!!22222222222222222222222222222222222222222222222222����o��"��������������������B�����!1AQ"aq���2�$B��#3RbCSr����%cu����������������������������������������������?����h��4f��hh�*(h�*(:�,�Eɣ�TP<�Z2iQ@� Z2iQ@�}id�Ң���Z[��*F���֍�w5���1#�*1֊�i�;�*x���E觊E:1@��F( �TS��TS�*t��P�� ��怢�(֊Z(5"��Ek�.$o*�*qӮk>�y��t�0U�� �F�gy�j�gl7( �da�s���=7>"���D�(;N �����$H�g��B�(H��Ή%���V�w�*�}����W�]r���=��V��ݸdw�֦�t�-4]2Y.�ݭdJ?�$��A���A�g�\�ۼ��m���*k��Z;h$��e�p+g�q�_y�|S� G��<��^��>�R9&��

 

When I query the table and print the values for image, I get the array outputed this way.

I have to extract only output of "value" uisng the separate fucntion.

 

I am not understanding what is the protected which is printed out.

Link to comment
https://forums.phpfreaks.com/topic/204071-get-image-headers/#findComment-1068896
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.