CrankBerry Blog Title

Archive for August, 10

2010


(1) Comment

USB for web developer

Categories :: Tools, Web Development

The other day I was working on a friend's machine, and since he didn't have the tools and programs I needed to commence my crazy development, I had to whip out my "stick". My USB stick that is. I plugged it in, and within minutes I was slicing, coding, and uploading. He asked me, "how'd you do that?". All I could reply was, "magic", but in fact you all might know by now, it's not magic. I have kept a USB with me for the last few years that has kept programs for mobile web development work. Today I will share with you the apps I have installed.

2010


(2) Comments

Function to replace variable value in URL

Categories :: PHP

Passing variables through the URL is awesome but how do you update, say, the id or the page when there's twenty different variables (index.php?id=2325213&page=30&view=210&sort=213&user=231221). Here's a quick function to create a new URL string that will replace values of specific variables. You can also remove variables which are not necessary.