Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Invisible Gif automatically 1

Status
Not open for further replies.

jerijeri

Programmer
Sep 11, 2002
33
CA
I need to have PHP generate an invisible gif and output it.

I know I can have my program read an invisible gif and output it. That's normally what I do. For this application it's not suitable.

In Perl I did this by:

print "Content-type: image/gif\n\n", pack "H*", "47494638396101000100800000ffffff" . "00000021f90401000000002c00000000" . "010001000002024401003b";


I need to do the same type of thing in PHP.

Thanks.

Jer
 
PHP has a pack() function, too. (
I recommend you try:

print "Content-type: image/gif\n\n";
print pack ("H*", "47494638396101000100800000ffffff" . "00000021f90401000000002c00000000" . "010001000002024401003b");

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Thank you. I didn't realize PHP had this function. I will try it out.

Jer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top