Published News » Tips & Tricks
There are a lot of plugins you can use to show random posts, but why use plugins when it’s so simple to do it with a bit of coding. Here is how to do it.
On most websites, content is stored in a database and served to visitors upon request. Databases are very fast, but there's lots of things that you can do to enhance its speed and make sure you won't waste any server resources. In this article, I have compiled 10 very useful tips to optimize and speed up your website database.
If you wish to have a simple ip-logger on your website, then a simple solution would to use PHP with two files. The first file you will need is the index.php file (or anyfile that you want logged) and put this code between the tags:
There are different methods and plugins you can implement to display code on your WordPress blog. After much testing and frustration, I’ve come across the best code formatting method that does not require a WordPress plugin (and can be implemented on any website). This tutorial guides you through setting this up on your website.
It’s not easy to become a great PHP developer which takes years of training and practice, but you sure should do your best to not be a bad one that undermines every project he’s involved in. Based on my past project experience and some recent researches done on PHP security issues, I have come up with a list of things you should know and do in your PHP code to achieve this goal. A few of them may
Nearly everyone who has a website and a twitter account shows their status on the website. Here are 2 different ways you can use to get the status and show it on your website.
If you are a learner (new) in PHP / Mysql and don’t know how to create table in Mysql database from php file than Here is the easiest and error-free way to create table in Mysql database.
Add article thumbnails to your posts in Wordpress. This technique does not require a plugin and is fairly simple to implement.
Configuring PHP is easy. You can change almost any aspect of the interpreter within the php.ini configuration file, e.g. modify error handling, increase memory usage, etc. Unfortunately, problems can occur when you move your application to a live hosting environment or are distributing the code to customers. ISPs usually lock down the php.ini configuration file — especially on shared hosting. Thi
In this blog post I am showing a simple PHP form that lets the user enter a name and color attribute values for the foreground and background color of an html element.
In an effort to get better with the Dojo Toolkit, I’ve decided to port yet another one of my previous posts: Remove Broken Images Using MooTools or jQuery. Broken images are an eyesore to any website so there’s no point to keeping them in the page. Here’s how you can remove them on the client side.
After posts about php best practices in security and performance, here is a list of common php best practices: 1. Always use the standard php tags,
When developing websites, you have to care about different browsers, as well as mobile devices such as iPhones or iPods. In this article, let's have a look at the 10+ most useful code snippets (Javascript, PHP, CSS, etc) for developing iPhone friendly websites, quickly and efficiently.
Mcrypt is useful PHP function cause it has a lot of encryption algorithms also it can be used to encrypt and decrypt data – two-way encryption. To begin, I’ll explain how data can be encrypted and then later decrypted using the Mcrypt extension.
A few days ago I published a blog post with examples of self-submitting PHP forms on my blog. I digested the feedback and created a better version of the form.
All the form needs to do, is to print out the number that gets submitted in a text box.