473,320 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PHP Image Upload Project

Using PHP, I would like to upload images to a directory and add
description of the image. The script should add image path and
description to database for retrieval. Thorough example would be
greatly appreciated. Thanks.

Jun 7 '06 #1
5 2327
"webmechanic" <dm*******@yahoo.com> wrote in message
news:11**********************@f6g2000cwb.googlegro ups.com...
Using PHP, I would like to upload images to a directory and add
description of the image. The script should add image path and
description to database for retrieval. Thorough example would be
greatly appreciated. Thanks.


Check out these two pages. They are all you need to do what you want:

Uploading files with PHP
http://us2.php.net/features.file-upload

Querying a MySQL database:
http://us2.php.net/function.mysql-query
Enjoy!

Anthony Papillion
Advanced Data Concepts

--
Posted via a free Usenet account from http://www.teranews.com

Jun 7 '06 #2
Hi friends,

iam new to php..

i cant understand how to upload image.

if it uploads means,,

the file (which was uploaded by me ) goes to where????

It goes and stores in webserver / database???????
I want to know this first....

plzzzzzzzzzz reply immediately for me frdzzzzz...

Advance Thanks.......................

lorento wrote:
Here a tutorials about making photo gallery :

http://www.zend.com/zend/tut/photogallery.php
http://www.webmonkey.com/webmonkey/0...tw=programming

I think those are good.

Lorento
--
http://blog.deshot.com
http://www.mastervb.net


Jun 27 '06 #4
Warning: move_uploaded_file(/testDir/Photos/.jpg)
[function.move-uploaded-file]: failed to open stream: No such file or
directory in C:\Program Files\xampp\htdocs\netphp\New Folder\uplo.php
on line 105

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move 'C:\Program Files\xampp\tmp\php12.tmp' to '/testDir/Photos/.jpg'
in C:\Program Files\xampp\htdocs\netphp\New Folder\uplo.php on line 105
Something was wrong.

this error came..What can i do??
rely plzzz...
poorna wrote:
Hi friends,

iam new to php..

i cant understand how to upload image.

if it uploads means,,

the file (which was uploaded by me ) goes to where????

It goes and stores in webserver / database???????
I want to know this first....

plzzzzzzzzzz reply immediately for me frdzzzzz...

Advance Thanks.......................

lorento wrote:
Here a tutorials about making photo gallery :

http://www.zend.com/zend/tut/photogallery.php
http://www.webmonkey.com/webmonkey/0...tw=programming

I think those are good.

Lorento
--
http://blog.deshot.com
http://www.mastervb.net


Jun 27 '06 #5
continuously this error came ...
i didnt understand .

poorna wrote:
Warning: move_uploaded_file(/testDir/Photos/.jpg)
[function.move-uploaded-file]: failed to open stream: No such file or
directory in C:\Program Files\xampp\htdocs\netphp\New Folder\uplo.php
on line 105

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move 'C:\Program Files\xampp\tmp\php12.tmp' to '/testDir/Photos/.jpg'
in C:\Program Files\xampp\htdocs\netphp\New Folder\uplo.php on line 105
Something was wrong.

this error came..What can i do??
rely plzzz...
poorna wrote:
Hi friends,

iam new to php..

i cant understand how to upload image.

if it uploads means,,

the file (which was uploaded by me ) goes to where????

It goes and stores in webserver / database???????
I want to know this first....

plzzzzzzzzzz reply immediately for me frdzzzzz...

Advance Thanks.......................

lorento wrote:
Here a tutorials about making photo gallery :

http://www.zend.com/zend/tut/photogallery.php
http://www.webmonkey.com/webmonkey/0...tw=programming

I think those are good.

Lorento
--
http://blog.deshot.com
http://www.mastervb.net


Jun 27 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
4
by: Steve Peterson | last post by:
Hi I've been beating my head against the wall trying to get this done, with little to no success so I thought I would turn to the .Net community for some help. I have an .NET app in which the...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
4
by: finecur | last post by:
I am working on the project. Here is the work flow. server. The server will do some calculation based on the data in the file and return an image in Jpg format. The returned image will be...
6
by: Bob Bedford | last post by:
Hi all, I've a classic upload form where people may select images on their computer to send on my website. Since this is done by people not very confortable with computers, some sent pictures...
7
by: xx75vulcan | last post by:
Hi, I've got a PHP Upload Form that works great, unless that is, the image your uploading has been modified through a photo editing software. Example: if I upload the image straight from a...
7
by: mishrarajesh44 | last post by:
hii all Truly telling i hav got this code from net & i am finding error while running the code below.. code:- <?php $idir = "photo/"; // Path To Images Directory $tdir =...
1
by: sravani1 | last post by:
This code runs like when i submit the form it takes the image and displayed and top of the image a map will displayed. But actually i want that when i give the image it checks the location in the map...
1
by: zandrew | last post by:
Hello there everyone. For a summer project I'm doing, I have to use a phone to pass an image I've taken (on the phone) to a dedicated server I've made on a local ubuntu machine. For the upload code,...
4
by: Jeyush | last post by:
Hi buddy, I have small script which upload the images. This script is working perfectly fine in localhost but when I upload that script to my website then it is not uploading the pictures. I...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.