How to Create a “Log Out” Script Based on Cookies with PHP
Last Updated on Wednesday, 15 May 2013 01:48 Written by Richi González Friday, 17 May 2013 12:00
Hello,
Today you will learn how to create a log out script in PHP. This applies only for those authentication systems that are based on cookie existence and evaluation. The article will cover the steps that are to be followed when the log in script sets for example a hash cookie and then does some evaluations to corroborate that the user is logged in.
Learn MoreHow to Create a Simple Shoutbox PHP Script
Last Updated on Tuesday, 15 January 2013 12:00 Written by Andrew Cross Tuesday, 15 January 2013 12:00
A lot of sites these days have a shoutbox, not all are 100% with each site so here is a simple php script to setup your own shoutbox enjoy
Firstly, let’s setup our table, enter this SQL data into mySQL or a GUI for mySQL such as phpMyAdmin.
Code:
How to Create a Simple Message Debugging Script for Your Website in PHP
Last Updated on Saturday, 23 June 2012 04:12 Written by Richi González Monday, 25 June 2012 12:00
Hello,
Whenever I am developing, I need to know where the script fails, what is currently doing, what values variables have, etc, therefore I always use a simple messages/errors script for debugging that will throw all the messages and errors to the top of the page.
Difficulty level: Easy
1. Create/Open a PHP file
2. Declare our variable $msg as an array
Learn MoreHow to Use Global Content Blocks for Javascript Embedding
Last Updated on Wednesday, 23 May 2012 02:26 Written by Ken Griffith Wednesday, 23 May 2012 12:04
Now that Google has modified the Page Rank Algorithm to include the speed at which a site loads, there is an *additional* financial incentive to optimize websites for speed. (Of course the original incentive to do this was to improve user experience, but Google has now given us a measurable metric for OCD web developers to obsess over.)
Many articles and techniques have been published about this, and I won’t try to re-invent the wheel here. This article concerns how to embed scripts in your HTML page using CMS Made Simple.
The conventional wisdom is that it is best to add javascript calls at the end of your HTML document in order to prevent javascript blocking from delaying the loading of CSS images and other external resources on your page.
The technique I am about to explain will reduce page load time regardless of whether you put your scripts in the HEAD or after the FOOTER. But it is especially useful for scripts that have to go in the HEAD and execute immediately such as modernizr.js, head.js, and web font loading scripts such as fonts.com or Typekit.
Learn MoreHow to Easily Run the Upgrade.php Script in Elgg 1.8
Last Updated on Monday, 30 January 2012 09:47 Written by Rodolfo Hernandez Monday, 30 January 2012 12:00
In this article, I will give you a step by step guide on how to easily run the Upgrade.php script in Elgg 1.8. Sign in to your Elgg site as an Admin and follow these steps:
1. Once logged in, click on the Administration link on the topbar:
Learn More
Recent Comments