Programming, Hardware, Software and gadgets.

[VBScript/ASP] About Isnull and =null

Expressions in VBScript/ASP with "null" in it, will always return FALSE. See the examples below:Dim test If (test=null) Then Response.Write "True" Else Response.Write "False" End If If Not(test=null) Then Response.Write "True" Else Response.Write "False" End If Both will show "False". Because "null" is in the expression, none of them will ever return True. This is [...]

By |2017-01-11T14:23:07+01:00April 26th, 2006|Technical|1 Comment

Windows Genuine Advantage bypassed again!

UPDATE: This bypass method described below doesn't work anymore. Visit mydigitallife's article for an updated (3-dec-2006) and easy method of bypassing WGA/Notifications/Visiting Windows Updates, etc. In 2005 Microsoft introduced Windows Genuine Advantage (WGA) which was (also) meant to reduce illegal copies. Since then, people who had an 'illegal' Corporate copy of Windows XP or Server 2003 were [...]

By |2006-12-07T16:05:59+01:00March 11th, 2006|Technical|0 Comments

Script it! A logfiles compress/backup script

Lesson of this article is: Script It! I will also show an in depth example of a sheduled script which will zip/rotate/delete/move/copy you logfiles. This is a typical task everyone with a webserver would automate/script because you want to save your logfiles for statistics and to track ‘bad’ visitors while zipping them reduces it’s size [...]

By |2017-01-11T14:18:38+01:00March 5th, 2006|Technical|1 Comment

Always do your calculations based on days !

This is a simple example of what can happen when you calculate with years only:Imagine you had a backup script which would delete all old backups, older than 1 year.When you were using a VBScript (or ASP) function like: DateDiff('yyyy', backup_create_date, Now)The 1st of January all your backups would be deleted (even the ones created [...]

By |2017-01-11T14:17:38+01:00January 30th, 2006|Technical|0 Comments

Magic Quotes and stripslashes, the truth

The follwing article I found is about what every PHP programmer should know, but unfortunately, the opposite is what i see among the most PHP programmers. They just freak around with the escaping of quotes and slashes. It sometimes results in a database with too many slashes and may be get noticed after a few [...]

By |2017-02-09T13:48:58+01:00November 22nd, 2005|Technical|0 Comments
Go to Top