Apr 07, 2011 — 5 comments
In my last post I talked about Session In PHP . Today I will be discussing Practical Use Of Session In PHP. This is going to be a straight forward tutorial, we are going store information in session and use the information across multiple pages. So let get started. Open your favorite text editor (Notepad), paste the code below in it and save as page1.php
Today, we will be looking at session in PHP. Session is a way to store information in variables to be used a crossed multiple pages. Session can be useful when you want to pass information across multiple pages and you want the information stored on the server. A simple session can be illustrated when you open an application, makes some changes then closes it. This process (opening, changing and closing of the application) represent a complete session.
A handy PHP code snippet which allows the user to display the total number of blog posts published on a WordPress blog or website.
This post will teach you how to fetch BuddyPress Xprofile field outside of the members loop. BuddyPress is a powerful social network plugin for WordPress and in some instances it is necessary to call XProfile fields outside of the loop. To fetch the profile fields one will need the User ID and the field name/field ID. You can get the fields by using the the function xprofile_get_field_data
This quick tutorial will show you how to create a username indicator on the WordPress Registration Form. This tutorial will use AJAX and some basic WP actions to accomplish this feature.
A handy PHP script which allows you to count the number of likes for a specific Facebook page
Today I will be showing you how to create a simple PHP/MySQL search for your website. Recently I was working on a project I have to include a within search feature. The search engine is just to search the website database. So I decided to make a tutorial of it for you guys. This is going to be a very short, in fact its going to be the shortest tutorial have ever done my lovely readers will notice this but its concise. So let’s begin.
A tiny piece of code which enables the use of PHP code within the WordPress text widget.
A handy WordPress code snippet which allows you to programmatically set static home page. It is very useful for WordPress theme and plugin developers.
It can be very helpful to get the slug of the current post or page. Here’s an easy snippet to get the slug of current post or page.
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?