Tags
adsense animation apache apple auto future date blog coding compsci css diy flash forum game hard drive internet explorer iphone itunes java javascript link linux mac mysql netbeans Photography photoshop php plugin Programming proofbuddy prototype python reliti robot robotics scratch teaching theme tips twitter usb video web design wordpress youtubePopular This Week
- Difference in Hub, Switch, Bridge, & Router
- JavaScript Error ‘expected identifier, string or number’ in IE
- How to get a screen shot from an iPhone
- Multiple cases for switch construct
- PHP: A function to return the first n words from a string
- DIY: Make Your Own Ethernet Loopback Cable
- Chrome not saving cPanel password since upgrade
- Datatables jQuery plugin – Refresh table
- How to revive a dead Western Digital MyBook
- A routine to create GUIDs in PHP
My Other Sites
Tag Archives: php
Quick Fix for OpenX Redirect Loop
tl:dr Version Problem is caused by a cookie. Quick fix is to park a different subdomain on top of your OpenX domain and use that subdomain to access admin. Full Version Last week I installed OpenX on my server to … Continue reading
WordPress recent posts as JSON
For an update to one of my web projects I went looking for a way to get the recent posts as JSON instead of using the RSS feed. I personally find JSON much easier to deal with than RSS, so … Continue reading
days_ago function for PHP
Can’t take credit for all of this, but I also don’t remember where the code that I started with came from. days_ago is a function that will take two dates and return a more human friendly version of dates. So … Continue reading
PHP function to get first n words from a string
A handy little function for your bag of tricks. This PHP function will return a max number of words out of a string, or the whole string if it’s already shorter. This probably could be made shorter, but I was … Continue reading
fsockopen / fgets very slow in PHP
I’ve been using a PHP class in a project that pulls a URL and then caches the result so it doesn’t have to get loaded again until it’s considered stale. Works pretty well, but every time it went out to … Continue reading
Posting to Twitter with PHP and OAuth class
Needed a bit of an update on a font site I threw up a few years ago. Specifically I wanted to put a script together to tweet a random font each day. Should have been easy since I already had … Continue reading
PHP function to reset instance variables
Quick snippet to reset all public instance variables inside a PHP class back to their original values. Can’t take credit for the code though. Found it on a website somewhere and have used it in pretty much every class I … Continue reading
Just finished up a couple of WordPress plugins
Needed a break from a larger web app I’m working on and this weekend kicked out a couple of WordPress plugins that I’ve had on my idea file for a while now. The first is called rTwit and lets you … Continue reading
Posted in Programming Tagged ajax, blog, coding, javascript, link, php, plugin, Programming, twitter, wordpress Leave a comment
How to change the MySQL password in MAMP
Reinstalled MAMP last week because the version I was using didn’t have PHP 5.3 which I needed for a project I’m working on. Had to do some Googling to find the default password for MySQL and how to change. First, … Continue reading
Posted in Computers & Internet Tagged apache, apple, database, mac, mamp, mysql, php Leave a comment
Trimming all members of an array in PHP
Needed a quick way to go through and trim leading and trailing spaces off of a string array in PHP. I’ve used array_walk to do it before, but with the addition of anonymous functions it makes it a little quicker … Continue reading