Tag: PHP

  • Recreating PHP’s time() function in 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.

  • 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% of my time each year after I spend five or six hours learning the syntax. Zen Coding works by expanding some abbreviations into properly closed html. The syntax is very simple, and can […]

  • 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 PEAR Mail & mail_mime is not having to deal with mime boundaries. I often see incorrect code for handling whether the message successfully sent or not. To check if the message is sent […]

  • 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.

  • 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.

  • 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.

  • 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.

  • Website Compatibility Testing (Chrome,IE,FireFox,Opera)

    How do you test browsers? I don’t usually try for perfect pixel positioning in every browser, but if the client asks I won’t complain!

  • 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 couple of weeks time, I will be spending a couple of days in Toronto while attending the many conferences, workshops and presentations on open source software (GNU Linux, PHP, etc.) I am hoping […]