-
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: php
Use Apache, PHP, and MSSQL on Windows
This is how I made the php_mssql extension work on my Windows/Apache/MSSQL/PHP (WAMP) Server. Download Apache. (I used the Win32 Binary including OpenSSL 0.9.8m (MSI Installer)) Download PHP. (I used the PHP 5.2.13 zip package) Download ntwdblib.dll. Run the … Continue reading
Date Diff in PHP
Thanks to Ryan Means, I have an easy way to find the difference between 2 dates/times in PHP. [code lang=”php”] <?PHP define(‘SecInDay’,86400); define(‘SecInHour’,3600); define(‘SecInMin’,60); $totalsec=XXXXXXX; //Replace the X’s with a int value of seconds $daysarray = explode(".", ($totalsec/SecInDay)); $days = … Continue reading
Posted in php
Comments Off on Date Diff in PHP