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.
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.
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
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
----------------------------------
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.