Check if file exists
Description: Use this code to check if a file exist on your server. It is great if you don't want to search all your files and would like to update or add a new one.
Added on: 01-Feb-2005 Hits: 272
|
Comments (1)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: 240
|
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: 241
|
Comments (0)Reading and Writing Files
Description: I'm sure many of you use databases, such as the ever popular MySQL, to hold all your website content, articles, possibly even images. What many of you may not know is that before databases, everyone used to use flat files. Actually, databases are simply flat files with some special data arrangements and indexing. So what are flat files? Simply put, they are ordinary files that you and I manipulate every day, such as txt files, images and word documents.
Added on: 13-Feb-2005 Hits: 214
|
Comments (0)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: 246
|
Comments (0)Create a php based CMS
Description: Writing your own CMS can lead to a solution that is better suited to your requirements, better addresses the needs of your users, and is better understood by your development team. If you have the time and expertise to write your own in-house system, it may well prove the better option.
Added on: 11-Mar-2005 Hits: 403
|
Comments (0)