Ultimate Web Tips

your Wordpress, jQuery, PHP, MySQL, Linux and CSS guide to a successful website

Documentation: PCRE – Perl-compatible regular expressions

November 29th, 2011, 1 Comment, PHP, by Joakim Ling.

The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl, with just a few differences. Some features that appeared in Python and PCRE before they appeared in Perl are also available using the Python syntax, there is some support for one or two .NET and Oniguruma syntax items, and there is an option for requesting some minor changes that give better JavaScript compatibility. from original documentation PHP PCRE
More

Rewrite/redirect URL tips using the .htaccess file

November 21st, 2011, 1 Comment, Apache, by Joakim Ling.

This’s where you’ll work the magic to get the URL structure you want in the most optimized way possible. Some of the most common used rewrite usage are to shorten long URLs to short-friendly, protect your self against hotlinking, transforming dynamic ?page=title&section=foo to friendly /title/foo/ or redirecting missing pages and much much more.
More

Zend studio performance issues (typing lag)

November 9th, 2011, No Comments, PHP, by Joakim Ling.

One of the most common used IDE for PHP developers is Zend Studio for Eclipse. Great for lazy programmers as that is consider being a plus nowadays. Have a reliable refactoring, testing, debugging and integrated with subversion is a must if you want to increase your development time. Well who has time to look for all those FIXME and TODO?

But I’ve noticed that sometimes I get performance issues, specially with typing lag. Being a fast typer there is nothing more annoying then a machine slowing you down.
More

Remove slug from custom post type

November 8th, 2011, 16 Comments, Wordpress, by Joakim Ling.

In WordPress 2.9 custom post type was introduced, that opened a new world for many WordPress developers. I’ve come across a painful issue when it comes to removing the slug and not destroying the rewrite rules for other post types. This only concerns those who are using %postname% as permalink structure and want to add a custom post type so that the urls for them are in the same way as normal posts and pages: http://siteurl/%custom_post_type_title%/.
More

WordPress custom page templates not showing

October 27th, 2011, 2 Comments, Wordpress, by Joakim Ling.

I was confused for a good hour with this problem, scratching my head. My “Page template” drop down had disappeared. Before start digging to deep in WordPress I made sure the files were still in my theme folder, checked that head comments that define a template not gone missing or had been messed up, even checked file permissions so that the files are readable and that the theme is still active, still no drop down.
More

Search query more secure from Google

October 20th, 2011, 1 Comment, SEO, by Joakim Ling.

As many of you already know, Google will soon make all users that are logged in use google.com over ssl (https), so we’re talking about everyone who has a Youtube, Gmail, Google+ and all other services that are connected with Google.

Doesn’t seem like a big thing, which is not. But Google makes a very nasty thing that will make all searches on https://www.google.* lose its search query and therefor not traceable.
More

Use hosted jQuery CDN

October 18th, 2011, No Comments, jQuery, by Joakim Ling.

There are several reliable content delivery networks that are free to use to host your jQuery file. These are widely used and the chance that the client has it cached in browser are high. Both Google and Microsoft are available for public use.
More