Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button to select a local picture from my hard drive then display it

Status
Not open for further replies.

markhkram

IS-IT--Management
Dec 30, 2008
32
US
I would like to have a button on my php site that will allow me to browse to a picture on my local hard drive, and then display it half-sized in my web browser... All without uploading anything.

Anyone know how I can accomplish this?

Thanks
 
Well I'm using PHP for other functions, but would also like to have a browse button on to find an image on the local machine, then manipulate it using php functions... All without uploading the image.

If there is a better way, let me know... :)
Thanks
 
You can't. Without uploading the image PHP can't do anything at all to the image. PHP runs on the server, therefore it needs to have the image uploaded to the server for it to be able to interact with it.

Perhaps Javascript may be a better alternative if you don't want to upload the image.

forum216

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Hi and welcome to Tek-Tips. To get the best from these forums readead faq222-2244 carefully first.

PHP is a server-side technology. If you want to do this client-side use a client-side technology, for instance javascript. Try googling for 'javascript image manipulation' then if you have a more specific query post it in forum216

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Sorry vacunita - I'm a slow typist!

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Its o.k, we are all just trying to help.


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks, I'm a newb, and now understand more...

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top