Posts tagged “PHP”
A while back I posted a Python snippet that I noticed could be used in a few other side projects. I have since posted it to Google Code so more than just myself will know it exists: http://code.google.com/p/phpserialize/.
Development Environment Help! Setting Up PHP mail() On Windows, Or: Where Is My Windows sendmail.exe?
Lately at work I’ve been having the worst of trouble getting PHP on my workstation to send mail. Previously it was a simple trek to a website to download a Windows build of sendmail.exe, but for some reason I cannot get access to it, so I have to go another route. Enter hMailServer, a free, [...]
I had an issue recently where I needed to calculate the Unix timestamp for the daylight savings time boundaries. According to the United States Naval Observatory, daylight savings time begins the Second Sunday of March and ends on the First Sunday of November. Awkward date calculations if you don’t have the magical strtotime() function in [...]
So I spent an inordinate amount of time tracking down a bug recently for a former employer in a system that accepts media file uploads and converts them on the fly. The system spawns off a small script that manages mplayer/ffmpeg/lame into the background and holds on to the PID to track the conversion process. [...]
So, after reading Mark Shuttlework’s blog on ideas for notifications in Ubuntu (basically mimicking Growl notifications for the Mac), I decided I wanted that kind of functionality, but… you know, NOW! There are a multitude of options available but currently I’m liking Mumbles. Unlike, say, Specto, which does the monitoring itself, Mumbles provides a DBus [...]
Well, it’s been a while since I’ve done a PHP update hasn’t it? Well alls well here in CStat, I have a quickie for you folks. Recently at work I had the need to run a script before every single controller (namely to add a plugin folder to Dwoo) for a specific module that I [...]
So I’m in the planning stages of a project where I’ll probably be doing some heavy lifting in Python and serving up the output through PHP. Obviously this will entail transmitting data between Python and PHP and while I haven’t had a chance to do performance testing to see if it’s worth it to save [...]
Unfortunately, Elizabeth Smith mentioned on twitter that PHP 5.3′s new garbage collector is based on a paper written by a man named Bacon (pdf here). We now have Bacon’s garbage collector… Announcing PHP 5.3: Now With More Bacon!! Spread the meme.
Nearly every application you could write in for the business sphere in PHP probably requires some sort of data export, most likely in the CSV format. The easiest way to provide a downloadable file is by altering the headers and echo’ing the file content. In our case: <?php header(“Content-type: text/csv”); header(“Cache-Control: no-store, no-cache”); header(‘Content-Disposition: attachment; [...]