Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Including Php-made Images In A Page?
beeseven
post May 29 2005, 03:44 PM
Post #1


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



Say you have this script that makes an image, and you want to include it in another page. Would you just use <img src="blah.php">? I'd test it right now, but all my PHP image stuff is on my school's server, which is currently down.
Go to the top of the page
 
+Quote Post
snlildude87
post May 29 2005, 04:18 PM
Post #2


Moderator
***************

Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



Yeah, that's how you do it. The reason I know is from the many Home Land Security indicators that are online. Search for them and look at the code that they give you.
Go to the top of the page
 
+Quote Post
HmmZ
post May 29 2005, 10:50 PM
Post #3


Super Member
*********

Group: Members
Posts: 362
Joined: 2-March 05
From: The Netherlands
Member No.: 4,097



well i take it you use an image editor such as imageready (wich creates a fair amount of html for rollover images and such)

if you do get the html code of an image editor, then you should use the include statement rather then including it through the <img> tag, the image tag could work (i wouldnt know) but im 100% sure it works with include, so

include "blah.php";

and for the record, what kind of image will it create? if you actually use php functions to control your image i would love to know..

Go to the top of the page
 
+Quote Post
theRealSheep
post May 30 2005, 12:38 PM
Post #4


Member [Level 1]
****

Group: Members
Posts: 69
Joined: 12-March 05
From: Australia
Member No.: 4,401



For the record (HmmZ smile.gif), http://www.php.net/manual/en/ref.image.php has all the information on using the GD library functions in PHP to create, manipulate and save images.
Go to the top of the page
 
+Quote Post
HmmZ
post May 30 2005, 07:14 PM
Post #5


Super Member
*********

Group: Members
Posts: 362
Joined: 2-March 05
From: The Netherlands
Member No.: 4,097



Whoa! thanks for the link there realsheep. This is one lovely feature of PHP i didn't know about! Wonderful! Oh im so excited! I must try it out! biggrin.gif

(in other words, thanks for the link)
Go to the top of the page
 
+Quote Post
beeseven
post May 30 2005, 07:48 PM
Post #6


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



If you think that's neat, php can also create pdf files...

http://us3.php.net/manual/en/ref.pdf.php
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Securing Images(2)
  2. How To Create Images?(3)
  3. Php Parse Error(2)
  4. Can You Add Images Into A Mysql Database?(20)
  5. Php Help Needed Including File In A Page.(2)
  6. My Code Doesnt Resize Large Images, Please Help.(2)
  7. How To Display Images Of A Directory(4)


 



- Lo-Fi Version Time is now: 6th September 2008 - 05:22 PM