Convert a DateTime string to a Unix timestamp in VbScript / Classic ASP

To convert a datetime string value like “2016-01-01 12:30:00” to a Unix timestamp (the seconds from 01/01/1970 to the input datetime) You can use a conversion function as the following: Then, to get back the datetime from the Unix timestamp … Read More

Base64 encoding / decoding functions in VbScript / Classic ASP

With the following functions Base64Encode(sText) and Base64Decode(ByVal vCode), You can easly encode/decode a text in/from base64 in VBScript/Classic ASP:  

How to export an ASP Associative Array to XML

“Asp Associative Array Class” provides a method to easly export all items to a well formatted XML string. For example, You can create a new *.ASP file : And You will get out the following XML:

VBScript Class to create easly Associative Arrays in ASP like in PHP

I’ve posted a project at Source Forge with an ASP/VBScript class to create easly associative arrays like in PHP; visit It is possible also load in an associative-array the data coming from MySQL or MS Access databases, then You … Read More Bitmap object locks images (impossible to move/delete jpg/gif files) – .Dispose() Method common problem

posted in: ASP.NET, C#, Programming, VB.Net | 0

Many people are in trouble and on forums asking why the .Net Bitmap object does not release an image with its .Dispose() method. The Bitmap object (after its destruction too) seems to lock the image file, then we are not … Read More

PHP Date or Datetime to MySQL Datetime and viceversa

Two useful PHP functions to convert normal date/datetime (“25.12.2010 12:10:00” or “25.12.2010”) to MySQL datetime (like “2010-12-25 12:10:00” or “2010-12-25 00:00:00”); You can get back a date/datetime from MySQL datetime too: Max ๐Ÿ™‚

Easy-to-use and strong Encrypt/Decrypt PHP functions

posted in: Cryptography, PHP, Programming | 0

I wrote those two following PHP functions to encrypt and decrypt strings easly and with a stronger encryption module than the other examples on the net (please, note that “strong” does not equals “secure”!); Happy encryption/decryption! ๐Ÿ™‚ Max

Javascript isArray() function

posted in: Javascript, Programming | 0

Javascript does not provide a function to recognize if a variable is an array or not; you can make a “typeof” of the variable however u’ll get an ‘object’ datatype, as in the following code to recognize a data type … Read More

How to stringify an object in Javascript: converting an object to a padded & well-formatted string or simply inline

I wrote a function to convert an object in a string (stringification) without using a JSON library; you can convert an object to a well formatted string with padding or simply to an unique line: a little example, you declare … Read More