Skip to content

Tag: PHP

Recreating PHP's time() function in JavaScript
JavaScript

Recreating PHP’s time() function in JavaScript

PHP's time() function returns the current unix timestamp. JavaScript doesn't exactly have the same functionality, but it's pretty close. Put a different and more understandable way, it returns the current time measured in seconds since the Unix Epoch (00:00:00 UTC on 1 January 1970). JavaScript has a similar way of getting the time but it's in milliseconds since the Unix Epoch.

May 12, 2015
PHP

Zen Coding

When I first heard of Zen Coding on Sitepoint, I figured it was some other gimmick that might save me about 0.01%…

September 2, 2011
PHP

PEAR Mail – Checking If Mail Sent

PEAR Mail & mail_mime is absolutely fantastic for sending multi-part mime emails and requires absolutely no effort. Probably, the best part of…

May 14, 2011
PHP

PHP Object/Variable Life Time

Many junior PHP developers seem to feel that PHP objects and variables are retained between requests. In PHP4 and PHP5, no variables are retained outside of the contents of $_SESSION and other stores between requests.

July 22, 2010
Drupal

Learning Drupal

For the last couple of weeks, I have began playing around with Drupal because I'm so sick of fighting proprietary CMS. The proprietary CMS suffers from the vendor updating only updating the CMS when convenient for them and this ends up holding the purchaser hostage. Overall, I know that drupal has enough of the functionality that I need in modules and the core to significantly improve the efficiency of my programming and possibly offer a large learning opportunity on software architecture.

July 9, 2010
PHP

PHP Update Finally Depreciates PHP MSSQL driver

The biggest advantage of the change is being able to better take advantage of Microsoft SQL Server features that probably made you choose to use SQL Server in the first place.Making the change wasn't overly difficult because I took time and wrote a simple Database Access Layer.

July 4, 2010
PHP

Installing PHPUnit on WAMPServer

Installing WampServer and PHPUnit doesn't have to be difficult. Check out this post on how to install PHPUnit on WampServer.

June 29, 2010
Experience

Open Source Week 2009

I am so excited to say that I finally booked everything I need to attend the Toronto Open Source Week. In a…

October 1, 2009