Current location: Hot Scripts Forums » Programming Languages » PHP » Image upload + verify


Image upload + verify

Reply
  #1 (permalink)  
Old 02-04-04, 03:23 AM
coolguy coolguy is offline
New Member
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Image upload + verify

Hi,

I need a code to upload and verify image with jpg, gif and png extension files. If the file is not end with either these 3 extension than echo "not accept".

Also check whether my folder picture/ have this file exist, if yes rename the file with _rn and than upload.

I saw many image upload scripts but couldn't find one that check if the file is exist in my directory than rename it and upload...

Someone please help thanks.
Reply With Quote
  #2 (permalink)  
Old 02-04-04, 11:22 AM
lotrtrotk lotrtrotk is offline
New Member
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Try this tutorial.
It's a little lengthy, but if you take the time you'll have a great class that you can use for any similar situation in the future.

http://www.phpfreaks.com/tutorials/85/0.php
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image File Upload Script Millz PHP 6 12-30-03 10:37 AM
Help with my upload script TheMetsAreBad PHP 2 12-04-03 06:10 PM
Basic image upload and data to mysql mdhall Script Requests 3 11-05-03 05:00 PM
Kamk.com Free Image Upload Rbad750 Website Reviews 6 10-18-03 01:43 AM
Kamk.com Image Upload Rbad750 General Advertisements 0 09-28-03 12:31 AM


All times are GMT -5. The time now is 08:16 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.