Redirecting Users
Description: PHP has the capability of doing thousands of different useful things. On of those useful things, is the ability to redirect users using HTTP headers alone. This is different from using plain HTML Meta tags to redirect, as using this method the user won't even see the redirect occur. This can be very useful in creating a page that redirects to different pages, depending on the input to the script.
Added on: 13-Feb-2005 Hits: 291
|
Comments (0)Getting Data from Mysql
Description: Using PHP you can run a MySQL SELECT query to fetch the data out of the database. You have several options in fetching information from MySQL. PHP provide several functions for this.
Added on: 26-Apr-2005 Hits: 290
|
Comments (0)PHP Array Sum
Description: We can store values in an array and calculate the sum of the values inside the array by using the array_sum function.
Added on: 16-Apr-2007 Hits: 288
|
Comments (0)Using Cookies in PHP
Description: Cookies are one of the most widely misunderstood concepts of Internet surfing to both users and developers. Many people think that cookies are dangerous, insecure 'things' that let people get your credit card details and what not. This is, for most cases, completely untrue. To the experienced web developer, cookies present a medium for allowing quicker and more user friendly access to your website.
Added on: 13-Feb-2005 Hits: 287
|
Comments (0)Securing PHP Files using HTTP Authentication
Description: It is quite common to have the need to password protect a certain file or a set of files, in order to prevent unauthorized access to those files. There are many different alternatives on how to do this including, sessions, cookies, JavaScript and HTTP authentication. The latter of these is what we are going to concentrate on in this article.
Added on: 13-Feb-2005 Hits: 286
|
Comments (0)PHP Sessions
Description: Alright, so you have a section on your website that you want to keep private but you don't feel like messing around with htaccess to keep people from getting in without knowing, well here's is a simple login system using the power of PHP sessions.
Added on: 31-Mar-2005 Hits: 286
|
Comments (0)Get Current Page URL
Description: Sometimes, you might want to get the current page URL that is shown in the browser URL window. For example if you want to let your visitors submit a blog post to Digg you need to get that same exact URL. There are plenty of other reasons as well. Here is how you can do that.
Added on: 02-Dec-2006 Hits: 285
|
Comments (0)