Raptor Raptor - 3 months ago 31
PHP Question

Classic ASP equivalent of PHP's pack()

What is the equivalent function for PHP's pack() function in Classic ASP ?


Out-of-the-box there is no equivalent function in Classic ASP. You basically have a few options when it comes to implementing this functionality in Classic ASP, you can;

  1. Use a COM component that mimics the functionality
  2. Attempt to write the code yourself but with VBScript especially you will likely hit problems working with byte arrays etc.
  3. Write your own COM component in a mainstream language like C++ or C# (there are others I'm just not listing them all and unsure of there support for COM enabled DLLs).