All Entries Tagged With: "file"
Simple File Hosting Script
I’ve made an easy to use file hosting script that is free for download. It has some nice features such as: Allowed file extensions. File size limit. Generated file names. BBcode, IMG code, Url, etc. Terms of Conditions Generated file names on the server are created using the functions rand() and the md5() hash generator. [...]
PHP Get File Size of Remote File
Previously in a post I made for uploading a file from URL we wanted to include a file size check to make sure the file wasn’t too big before we upload it. Here I’ll show you how to get the remote file’s size and other information before doing other functions with it. We’ll do this [...]
PHP Upload file from URL
Let’s say you have a form on a page with the input for URL to a file so you can upload it to your server. You can do this using PHP functions. Here is an example of a form to upload: <form action="upload.php" method="post"> Enter URL: <input type="text" name="url" size="35" /> <input type="submit" value="Submit" name="submit" [...]
Uploading Files with PHP
With many forms you may want to include some sort of upload of a file. There are many functions for files in PHP that you can use to do this. Some things you may want to consider when uploading a file to your server: File extension – what type of file is being uploaded. File [...]
