Programming, Hardware, Software and gadgets.

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