[PHP] Displaying images with php?
What is the best way to display images in the browser with php? If i for instance have the pictures in ..\pictures\ ?? -Ragnar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying images with php?
What is the best way to display images in the browser with php? If i for instance have the pictures in ..\pictures\ Youre asking the wrong question. PHP doesnt display anything in the browser... the browser does that job. What you can do is one of the following: 1. Output content headers and fpassthru the file (see fpassthru in the manual for more details)2. Output the HTML with a IMG / tag with the SRC attribute pointing to the image as usual. Others on this list will be able to provide good tutorial web pages which would do the job explaining PHP's role in displaying images in the web browser much better than I can. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying images with php?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Ragnar declared What is the best way to display images in the browser with php? If i for instance have the pictures in ..\pictures\ print(img src=\../pictures/myPic.jpg\ alt=\\ /); Or did i misunderstand you? - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8/npAHpvrrTa6L5oRApm0AJ4sQ3jB12uGe3ToxMHgsKoxffon5wCfaUOI Yvdfm+C55uKT/JJFpfVjYeQ= =XZLu -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying images with php?
Thx, no, you did not misunderstand. Thats the way im building the html code for displaying images now, but in the manual there is a lot of image-functions. I thought that there maybe was some better way of displaying the images.. But... hey, if this is the way it is done i guess everything is ok ;) Thanx again!! .Ragnar Nick Wilson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Ragnar declared What is the best way to display images in the browser with php? If i for instance have the pictures in ..\pictures\ print(img src=\../pictures/myPic.jpg\ alt=\\ /); Or did i misunderstand you? - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8/npAHpvrrTa6L5oRApm0AJ4sQ3jB12uGe3ToxMHgsKoxffon5wCfaUOI Yvdfm+C55uKT/JJFpfVjYeQ= =XZLu -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying images with php?
On Wed, 5 Jun 2002, Ragnar wrote: no, you did not misunderstand. Thats the way im building the html code for displaying images now, but in the manual there is a lot of image-functions. I thought that there maybe was some better way of displaying the images.. The image functions are for building new images or for modifying existing images. If you already have them ready to go sitting in a directory, there's no point messing with anything more complicated than img src=/pictures/... miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php