Sean Corfield (www.corfield.org) has a custom tag that uses a Java-based PHP implementation (can't remember the name) to allow execution of inline PHP code from CF templates. I don't know if they implement the pack() function, but I'd think it likely. If they do, you could use that to get your pack() function in CF, though it's using a wrecking ball to pound in a finishing nail.
cheers, barneyb On 9/26/07, James Holmes <[EMAIL PROTECTED]> wrote: > There's no direct equivalent in CF; there isn't even a direct > equivalent in Java (as far as I can see). It seems you'll have to > write one - perhaps crack open the source for that function in PHP (or > the original form in Perl). > > On 9/27/07, Daniel Smith <[EMAIL PROTECTED]> wrote: > > In PHP there is a function called pack() "http://us3.php.net/pack". The > > function will pack data into a binary string. I assumed that this would be > > done using CF's CharsetEncode(), but the result was not as I expected. > > > > I am specifically trying to call "pack('N',foo)", which will encode as > > unsigned long (always 32 bit, big endian byte order). > > > > I have spent the 3hrs looking for an answer and came up dry. Any help would > > be much appreciated. Thanks. > > -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289586 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4