Apr 07, 2011 — 5 comments
There are times you might want to reference a particular file in another file. These is mostly common in OOP. PHP provides function which can be used to reference another file from a calling file. These function are include() and require() and we will be looking at them shortly. These functions help in creating functions, headers, footers, or elements that can be reused on multiple pages. This will help developers to make it easy to change the layout of complete website with minimal effort.
If you are moving to a new domain, here is how to 301 Redirect WordPress on Addon Domains using htaccess, without hurting your page rank.
A handy WordPress code snippet which allows HTML tag within the category description field on the WordPress dashboard.
This is a handy WordPress snippet which allows you to change search permalink in WordPress.
In this post, I will show you how you can disable default sidebar widgets in WordPress.
We can get current server path or current working directory in PHP using getcwd function. You can change current working directory using chdir function.
Most spam bots aren't too smart and will fill all the fields they find in a form in attempt to spam it. This led to inventing super-simple "honeypot" fields - input fields hidden by CSS. Users don't see them and don't fill them, while bots fill them. In your backend you just have to check if the field is empty. If it is not, voila, you have caught a spammer.
This is a simple tutorial that shows How To Populate Drop Down Menu From Database In PHP. This is going to be a simple and straightforward tutorial. Without wasting time, let begin. We will be create a test database and some sample data to use for the purpose of this tutorial. Below is the schema that create our fruits table.
In this post, we will see how we can add a Favicon to our WordPress Website or blog
Here's a handy PHP code snippet which allows you to the fetch Alexa rank of website.
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?