File Upload

It is easy to upload file when the Register_Globals are set to ON in the php.ini file (php configuration file) which is not recommended in any case for security reasons. When Globals are OFF then in this case I have tried this script and it works fine. Following is the script. Create two files. one […]

{ 1 comment }

By default there is a restriction of 2 Megabytes file upload at a time for PHP. If we have to upload media files or other large files then we will have to change some settings in php.ini. Locate the php.ini file in the folder your upload script resides in. If none exists, install a new […]

{ 0 comments }

This php script takes image file creates a thumbhnail and upload it into ‘thumb’ directory and also upload origional image with rename in ‘images’ directory. Functionality – Uploads image in the ‘images; directory and renames it – Uploads thumbnail in ‘thumbs’ directory and renames it with thumb_filename – Determine thumbnail max width and height – […]

{ 2 comments }

This script uploads the file in the same directory and give you some information about the file. Functionality – Uploads file in the same directory – Gives information like file name, size in bytes and file type – Determines Max File Size allowed

{ 0 comments }

This script accepts just images and uploads these into ‘images’ directory. Functionality – Determines Max File Size (Size Restriction) – Accepts just jpg, jpeg, png or gif image files – Changes extension of image into lowercase – Stores the file in predefined directory at your server – Replaces names of files with random digits (Rename)

{ 2 comments }

This is complete request form and it can be used to ‘Request A Quote’ and have some material from user uploaded at your server. This is what script does. Functionality – Determines Max File Size (Size Restriction) – Determines Max Available Space for upload (Space Restriction) – Stores the file in predefined directory at your […]

{ 4 comments }

This example takes a name and file. Uploads it to upload directory and rename it name_filename if file name is ‘name’. If the file name is cat and you have typed animal then script will rename the file as animal_cat.

{ 0 comments }