29
2014
WordPress Syntax Highlighters, and how to Switch From One to Another
If you’ve been to this site before, you’ll probably notice that I’ve switched from the syntax highlighter that I’d used to display code to something a ton cleaner (the credit does not go to me, the new syntax highlighting plugin came from this TutsPlus article). Until a few hours ago, I used SyntaxHighlighter Evolved, which looked great, and was super easy to use, however, there were some issues with using it on a website displaying code that people […]
20
2014
My favorite tools for Web Development
The question that I get asked more than any other is, “What tools do you use to code?”, so I figured I’d spread some software/knowledgebomblove and lay out my workflows! I’ll also break it down by the actual order of my workflow (since that’s a bit easier for me to write/remember anyway): Textmate I code by hand, and since I code by hand, Dreamweaver isn’t even a thing that exists on my computer. I use […]
10
2013
Structurer: Review
I’ll give you a hint. It’s [insert obscenity here] awesome, and this is a review of the Nettuts app “Structurer” (link). Earlier today, I was setting up my 1,000,000th website, and thought, “HOLY CRAP. This is getting redundant.”. When you work on as many sites as I do, or even if you just have to copy paste your files all the time, the hour or so it takes to load up all this stuff actually does pile […]
5
2013
Dev Confessions (And lessons learned the hard way!)
I’ve learned a lot through the years as a web programmer/engineer/developer (pick and choose the term you prefer). I’ve so too many thousands of lines of code to count, I’ve seen so many errors and warnings and server outages that I just don’t care to describe, and looking back at my past work is often pretty horrifying! Let’s get those confessions out of the way Forgive me oh holy purveyors of code, for I have […]
2
2013
I’m back!
After much much much delay, and hundreds of thousands of lines of code, I have returned! It’s not so much that I’d decided I had a blog that I didn’t care about anymore, but I felt as though if I were to carelessly throw garbage code on here for the sake of populating this site, I’d be a bit of an ass. Since my last post (whoaaa, apparently over a year ago), I have worked […]
26
2011
301 Redirect Using .htaccess
A commonly overlooked factor in search engine optimization for websites is the “to www or not to www” question. Singularly speaking, search engines have no preference for your site to contain the “www” prefix, however failure to specify can negatively impact your search engine rankings. Do note that in order for the .htaccess file modification below to function properly, your webserver must allow mod_rewrite. Consider the following scenario. You submit your xml sitemap to google. […]
2
2011
Welcome to PHP Dev Tips!
Hello, and welcome to PHP Dev Tips! As you can see, this is the first of many many many posts about PHP, MySQL, HTML, XHTML, Javascript, Ajax, SEO, usability, and anything else related to the web that I found useful, and you may. I encourage YOU to tell us what you want! What do I want? I want you to join the PHP Dev Tips community- write some handy articles, interact, and keep up the […]
Recent Snippets
- htaccess : Only allow access to specific wordpress upload types if logged in
- MySQL : Query WordPress Database for Invalid Media Filenames
- PHP : Get Actual IP Address with PHP
- JavaScript : Allow Tab in Textarea
- PHP : Clean sanitized database contents on output
- htaccess : Force www. prefix in URIs
- PHP : Force File Download with Correct Content Type
- Wordpress : Disable upgrade notification