Snipe.Net - Geeky Stuff
Twitter
Currently: @gkra s/just like/be/ in reply to gkra 10 mins ago

Posts Tagged ‘php’


Microsoft Web Developer’s Summit 2009

I had the opportunity this week to go out to Redmond, Washington to attend the Microsoft Web Developer’s Summit at the MS headquarters. For this summit, about 25 leaders in the PHP (and PHP project) community were invited out to sit down with members of the MS product development teams and provide critical, honest feedback [...]


Web 2-Point-Owned: Apple.Com’s XSS Exploit

Earlier today, we got a glimpse of what happens when a big company forgets to cross their t’s and dot their i’s. And in programming, that means failing to validate user-entered data before displaying it on-screen.


Funky characters in HTML mail using PHPMailer

While working on a client project, I ended up having to send HTML email notifications to users. During testing, I discovered some stray characters at the beginning of the email.


PHP Regex to Make Twitter Links Clickable

This is just a quicky post, not one of my usual long, rambling diatribes. This week is madness, even by my own absurd standards, but I didn’t want to miss jotting this down in case it might be helpful to others.


Writing Your First Twitter Application with OAuth

If you’re interested in writing a web-based Twitter application but aren’t sure where to start, the Twitter OAuth library from Abraham Wiliams makes authenticating with OAuth and Twitter a breeze.


Changes to Facebook’s Newsfeed/Wall

With the most recent API changes, specifically the one that changed the way fan pages behave so that they look and behave more like Facebook user profiles, Facebook also made a significant change in how newsfeeds work in applications.


Quick and Dirty PHP Caching

Caching your database-driven website pages has a plethora of benefits, not the least of which being improved speed and reduced server loads. This article will explain how to set up a simple caching system, and will also address when and where caching might not be appropriate.


Trying out Facebook Connect

After much deliberation, I have decided to give Facebook Connect a shot on Snipe.Net. Those of you who read this site regularly may remember that I had quite a lot to say about using Facebook Connect last month, so it may seem odd that I’m making this decision. I’ll explain.


Creating A Wordpress Theme

If you’ve already got some design chops and a Wordpress blog, but you find the idea of turning it into a Wordpress template a bit daunting, you’re not alone. Creating your own Wordpress theme is actually easier than you might imagine, and although some PHP-fu is certainly helpful, you don’t need to be a PHP [...]


Using IP Geolocation and Radius Searching with PHP/MySQL

Delivering content relative to the physical location of your users is an excellent (and fairly easy) way to fine-tune the content you’re delivering to be most relevent to the people visiting your site. Two simple ways of doing this are to use an IP-based geolocation lookup, or to do a manual radius search (like a [...]


Fixing Curly Quotes and Em Dashes in PHP

The curly quotes, or “smart quotes” generated by Microsoft Word and other applications can be a real headache to developers. If you’ve built an administration area for your content publishers, and the publishers frequently compose their posts in Word and then copy+paste into your form to publish to the web, you may run into the [...]