[PHP] Odd request

2002-10-12 Thread Shawn McKenzie
Probably a question for the php dev team, but here it goes. I want to display an external page in an iframe and have the iframe auto sized to fit the content without having scroll bars. I've tried javascript to no avail. So here's my idea: 1. Instead of iframe: $string =

RE: [PHP] Odd request

2002-10-12 Thread Smith, Benjamin
No, there isn't, and no, there probably shouldn't be, since the height in pixels that the page will render in is dependent on client-side attributes like font size, resolution, browser type, etc. This might be an appropriate function in javascript, but not php. Any way in php to determine

[PHP] Odd Request: Image 2 HEX

2002-07-09 Thread JSheble
I'm using a Zebra label printer in an application I have and in order to display an image on the label, according to the ZPL II printer language, any image must be converted to HEX code. Does anyone hvae a code snippet or know of a free utility that will take a graphic image (BMP, GIF, JPG,

Re: [PHP] Odd Request: Image 2 HEX

2002-07-09 Thread Steve Edberg
$hFile = fopen($PathToFile,'r'); $File = fread($hFile, $SizeOfLargestImageYouHave); fclose($hFile); $HexVal = bin2hex($File); This doesn't do any error checking or stripping of image headers that may be necessary; you'll have to use string functions (eg; substr() or maybe

Re: [PHP] Odd Request: Image 2 HEX

2002-07-09 Thread Miguel Cruz
On Tue, 9 Jul 2002, JSheble wrote: I'm using a Zebra label printer in an application I have and in order to display an image on the label, according to the ZPL II printer language, any image must be converted to HEX code. Does anyone hvae a code snippet or know of a free utility that will