upload

Uploading images in PHP… I store image name and size (width, height) in DB to retrieve later to use. Here is a script that will enable you to get image width and height in PHP. You can use this script in image upload forms.

{ 0 comments }

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 }

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 }