Apr 07, 2011 — 5 comments
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.
We will be looking at an interesting topic today: Difference Between Arguments And Parameters. No doubts most of us do use these two terms interchangeably while working with functions. New to functions? read my other tutorial Functions In PHP. These two terms can be confusing and are mostly used in place of the other, but as a programmer you should be able to identify and use your terms properly.So what are arguments and parameter?
In this tutorial, I will show you how to change the default placeholder image in WooCommerce.
A handy code snippet which allows you to programmatically add product to cart in WooCommerce
Today we will be taking a quick look at Single vs Double Quotes In PHP. This is going to be a very brief tutorial. Most people (myself inclusive) misuse this quotes. Now that I understand where and when they are being used, I decided to share it with you guys.
A tiny amount of PHP code which can be used to change the default media uploads location in WordPress
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?