Including Php-made Images In A Page?

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Including Php-made Images In A Page?

beeseven
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.

Reply

snlildude87
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.

Reply

HmmZ
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..


Reply

theRealSheep
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.

Reply

HmmZ
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)

Reply

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

http://us3.php.net/manual/en/ref.pdf.php

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : including, php, made, images, page

  1. How To Display Images Of A Directory
    (4)
  2. My Code Doesnt Resize Large Images, Please Help.
    (2)
    Can someone please have a look at the following code, this uploads an image, and make it in 2 sizes,
    one size is max. 600 x 800, uploads to images folder and second 120 x 120 and uploads to thumbs
    folder. this script works fine, with normal size images, but if i try to upload large pics( for
    example, an image with dimension 2432 x 3300, it shows blank page, and uploads the original image
    without sizing to "image" folder, and doesnt make any small thumbnail... I hope u understand..
    Please someone help me, i shall be so thankful. session_start(); header("Cache-contro....
  3. Php Help Needed Including File In A Page.
    (2)
    i'm a noob in php programming, i can understand and modify php programs, but i dont know to
    write on my own. So please somebody who is well versed in php help me. My need is, I'm
    currently builiding a knowledge base website , i've my own design for the website, check here,
    http://laschatz.info/kzone/ Each page in the left hand site has a tree navigation of all the
    topics available. Since this information must be same in all the pages, presently I need to change
    all the pages after adding a new category. Could you please help me in such a way that I can ad....
  4. Can You Add Images Into A Mysql Database?
    Using Php? (20)
    I'm learning php in class right now, but I'm still not that good at it, what I'm
    wondering is when I write the php so that it can connect with a database, can I at the same time
    have it that it is able to display back images that I choose. Like, I want a search feature, where
    you can search for a keyword, and it will bring back a list of all the possible entries with that
    keyword, but each of these entries will have a photo associated with it. Now, do I put these image
    files directly into the database, or do I write the code to link them from my files to th....
  5. Php Parse Error
    Including Variable in post (2)
    ok this is my config script that runs my site: CODE <? # Set up info for left column on the
    top page: # It should begin with html tag <td> and finish with tag </td>
    $top_leftcol=" <td width='195' bgcolor='#eeeeee'
     valign='top'> <table width='100%'  bgcolor='#777799' border=0
    cellspacing='0' cellpadding='0'> <tr><td> <font
    FACE='ARIAL, HELVETICA' color='#ffffff' size='-1'>  
    <b>MMORPG Trade Center<....
  6. How To Create Images?
    (3)
    How can i create images (using php) of 128x128 by giving some types of background... and users can
    write text on the background... /blink.gif' border='0' style='vertical-align:middle'
    alt='blink.gif' /> QUOTE you can take example from the followinbg site:
    http://zedge.no/?side=navnelogo ....
  7. Securing Images
    (2)
    Just wondering if anyone's worked with securing images to avoid direct linking than just by
    obscuring the URL or using a .htaccess file. I briefly looked through the documentation and source
    for gallery and it looks like the images are stored under the web root, so anyone with a direct link
    can browse the images regardless of user privileges. I was thinking one way of doing this would be
    too store the images above the webroot directory so that visitor's can't navigate to them
    and having a php script that can read the image dir output the images by sending th....
  8. Vote Script Help
    images as a result? (1)
    I made a vote poll script, and it work fine with results in numers or %, but i want to show images
    as a result. Is that possible? For example like voting poll in this forum. I tried something but
    that couldnt work. Someone?....
  9. Refreshing Images
    (1)
    I've got a script that generates a graph by creating it as a .png file (I can't output the
    image directly to the browser because of the way I need to generate the data). This all works ok
    however, in order to keep the data managable I've set a limit so that it only displays 12 months
    data at a time. The problem I have is that when I click on the next button to display the next set
    of data, the graph remains the same until you refresh the browser. I've tried using unlink() to
    delete the image file forcing the script to re-generate it when the script is r....

    1. Looking for including, php, made, images, page

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for including, php, made, images, page

*MORE FROM TRAP17.COM*
advertisement



Including Php-made Images In A Page?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE