include() is probally one of the most commonly used PHP functions, it allows you to display the content of a file within another page with just one simple line.
There's probally many things you could make use of php includes for, the most common being a template based website where you'll have a number of content pages but only one or two pages with the code for the main layout which is then included into the content pages.
This is a very simple file uploading script. To begin, make a folder and name it "files". And then make another file out of that folder and call it "index.php" and put the following code:-
Well, tired of FTP'n everything up to your site? Or even want to allow other members to upload files but you dont' want to give them FTP access? Well lets create a file upload system that will take care of all your uploading woes. THis also employs some minimal security checks.
As of PHP 4.1 uploaded files can be accessed via the $_FILES superglobal, but in earlier versions you can use $HTTP_POST_FILES array and the last option but not recommended will be to use the $upload that corresoponds to the name of the file input. Note: You can only use the last method if register_globals is enabled.
Databases really are wonderful pieces of software, they allow us to organize our content logically and allow easy access, updating and searching. However, sometimes a database is overkill and is not needed for the task. For example, what if you had a list of sayings or quotes, and you would like to display a random one each time the page loads. This could easily be represented in a database; however, it is equally as easy to do it using flat files
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.