note 25002 added to ref.image
| From: | alagachak at spray dot se | Date: | Sat, 07 Sep 2002 15:46:08 +0000 |
| Subject: | note 25002 added to ref.image | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36299@lists.php.net to get a copy of this message | ||
Greetings.
I'm trying to output an image to the browser:
<?PHP
$im = imagecreatefromjpeg ("test.jpg");
$w=imagesx($im)
$h=imagesy($im)
print "Width:".$w."<br>";
print "Height:".$h."<br>";
(SendImgtoBrowserVariousCodeTried)
--------
Output in browser:
Width:400
Height:400
(Here comes either Raw Data or a broken img link or nothing at all, depending on what I've
tried.)
------------
Now trying the varoius examples given it here it still only likes to output raw data, or simply tell
me i got a broken image link.
What have I missed...or do I need to pay closer attention to what I'm reading.
Originaly the setting is me wanting to store an img to a database and then output it so I need to
understand how-to output it into the browser at various places etc...
Am I being somewhat clear at what the problem is?
Help me please? :-)
--
http://www.php.net/manual/en/ref.image.php
http://master.php.net/manage/user-notes.php?action=edit+25002
http://master.php.net/manage/user-notes.php?action=delete+25002
http://master.php.net/manage/user-notes.php?action=reject+25002