Current location: Hot Scripts Forums » General Community » Script Requests » simple picture upload script


simple picture upload script

Reply
  #1 (permalink)  
Old 01-08-04, 12:28 AM
carlo_l carlo_l is offline
New Member
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
simple picture upload script

Hi,
I was wondering if you guys could create a php-based code where it allows pictures to be uploaded to a webserver.
Im going to use it to host some forum "signatures" and some personal pictures for my friends and family since i got around 2gigs worth of extra bandwidth. Can anyone help me out? I tried to search in hotscripts but most of them just provide me with broken links, expensive scripts or scripts that only work for windows. (my webhost uses linux)

your help is much appreciated.

JC
Reply With Quote
  #2 (permalink)  
Old 01-08-04, 08:33 AM
mdhall's Avatar
mdhall mdhall is offline
Aspiring Coder
 
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
Quote:
Originally Posted by carlo_l
Hi,
I was wondering if you guys could create a php-based code where it allows pictures to be uploaded to a webserver.
Im going to use it to host some forum "signatures" and some personal pictures for my friends and family since i got around 2gigs worth of extra bandwidth. Can anyone help me out? I tried to search in hotscripts but most of them just provide me with broken links, expensive scripts or scripts that only work for windows. (my webhost uses linux)

your help is much appreciated.

JC
Here's one...see if it works for you.
Attached Files
File Type: txt upload.txt (6.6 KB, 661 views)
Reply With Quote
  #3 (permalink)  
Old 01-08-04, 12:24 PM
carlo_l carlo_l is offline
New Member
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Database Table...named "items"
id int(11) auto increment primary
fname varchar 20
title varchar 20
filename varchar 20
im not sure what to do with this part (im not sure how to make a db table, but i'll see if i can mess around with it in the mysql db creator in cpanel), but when i read the code it's exactly what i needed! ty

Quote:
Parse error: parse error in /home/carlo/public_html/host/upload.php on line 46
i know im still missing some stuff but i tried it anyways
Reply With Quote
  #4 (permalink)  
Old 01-08-04, 01:16 PM
mdhall's Avatar
mdhall mdhall is offline
Aspiring Coder
 
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
Basically, with the db table, you store the name of the person adding the file, the file title, and the filename. Select_pic is the form for adding the name, title and selecting the photo. Upload is the upload script. Item_list gives a basic list of photos that have been added, and links to View_item, which shows the photo and its info. Many people here on the forums helped with the code, so I give much of the credit to them.
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
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
Help with my upload script TheMetsAreBad PHP 2 12-04-03 06:10 PM
What to watch when implementing an upload script johno PHP 0 11-21-03 07:00 PM
Need a simple uploading script DarkSamurai2003 Script Requests 2 11-21-03 04:59 AM
Seeking for a simple photo gallery script... Sgrebs PHP 0 10-27-03 02:00 PM


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