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: 253
|
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: 279
|
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: 281
|
Comments (0)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: 316
|
Comments (1)