Published News » Tips & Tricks
An easy way to detect mobile devices with PHP and the WURFL service.
In the Zend Framework’s documentation there are lots of examples how you can initialize all the actions in a given controller – by simply adding the init() public method in the controller’s code. But did you know that you can do the same thing with any model in ZF?
To help you quickly and easily display Most Popular Articles here is a simple tutorial for you.
There’ve been lots of times when I wanted to use the mail() function on my local server. I am sure lots of you would’ve been wanting it too but most of you would’ve settled for PHPMailer or just used a web host to test the code instead. I myself had been doing the same until recently when I finally decided to do some research and get it to work.
A quick post here. Often times I find myself building sites that have a blog and thus use the Comment module that ships with Drupal. That all works great. The problem is, later when I’m building out other content types, say Photo Galleries, I more often than not wish to disable comments on those node types. No problem, right? Just disable comments and get on with it. Well no – it’s not all right
There is a lot of HTML5 Video player out there, but how about creating HTML5 Video Player your self?. Steveheffernan has writen tutorial How to Create an HTML5 Video Player It’s meant to give you a basic understanding of the different options you have with the new video tag in HTML5, and the javascript needed to create some of the typical video controls you’d find in other players.
Well like other’s i had been using the when ever i could thinking that since its an html element its okay to use it. Well its not. So STOP using it.
The use of the Break Element () is only to break lines between text in paragraphs. Using it to add padding between elements was one of the ways i used it for. Use instead as many number of times you want instead of the break element.
Following on from my previous two posts, showing a gentle introduction to OOP in PHP and some slightly more advanced concepts, I’d like to take a dive into the magic methods in PHP. It might be magic, but no wands are required!
Services like Tweetmeme, Bitly and Facebook provide useful tools to share links on-line. The Tweetmeme button and Facebook Like button are a perfect example of these tools you can easily add to your WordPress Theme using just a bunch of lines of code.
Strings are a very important kind of data, and you have to deal with them daily with web development tasks. In this article, I have compiled 10 extremely useful functions and code snippets to make your php developer life easier.
Do you like WordPress Theme Frameworks? To be honest, I'm a Thematic addict. Using this theme, I'm able to create any kind of site extremely fast. To help you getting started with Thematic child theme development, I have compiled 10 useful WordPress hooks in this article.
I discussed a little about URL encoding in my recent post Facebook: Bug with URL encoding, although it seems like the bug still exists. In this post I will discuss “how to encode a given URL before accessing it using CURL or fsockopen”. The problem with URLs is that they might contain certain disallowed characters like spaces, according to RFC 3986. Our aim is to convert these invalid characters
Browser v/s Server – Optimizing Site Using GZIP Compression In the online world if ever a browser and server interacted in a chat environment, this is what would definitely come up:
Using too many plugins on a Wordpress installation usually slower the loading time of the site, especially when same can be achieved using a simple piece of code. Though its not always wise to use codes in your wordpress themes, especially if you are not familiar with them. Here we will show you how to Show Related Posts Without Plugin which will be based on the tags you will use in your posts. H
PHP is a scripting language that is perfect for developing dynamic web pages and applications. Being one of the most popular scripting languages on the internet today, makes it pretty easy to get started with. If you are looking for a technique that you forgot about, or a function you didn’t know someone else has created before; then this article might be something useful for you and will save yo