Given all that information, let's take a look at "upload.php4" Be warned: you should enforce strict rules about what can and can't be uploaded when using such a system in a production environment. Failure to do this would open up a security hole which would allow users to upload Perl scripts, C binaries and PHP documents to the server, and perhaps even execute them remotely. A good way to avoid this is to use the $upfile_type variable to decide which files get uploaded, and which get rejected. For example, Similarly, you can use the $upfile_size variable to reject files which are too large for comfort. This article copyright Melonfire 2000. All rights reserved.
blog comments powered by Disqus |