SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: png image

  1. #1
    SitePoint Zealot
    Join Date
    Dec 2008
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    png image

    Hi

    on my web application i need to generate some charts dynamically, and for this i was thinking to use jpGraph library.

    this library has allot of samples and i've seen them ones. How can i have them all loaded in order to display only the results(the genrated graphics in one page only).

    I was thinking to make a script which read all files fro n the directory but didn't work

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well thats how you do it. Read all the filenames and make proper urls pointing to the file location. Make sure to use html <img> elements.

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2008
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i get the files from that directory and i use require to "run" each php file. main problem is this approach displays just the first file graphic.

  4. #4
    SitePoint Evangelist
    Join Date
    Jun 2006
    Location
    Wigan, Lancashire. UK
    Posts
    523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dole.doug View Post
    i get the files from that directory and i use require to "run" each php file. main problem is this approach displays just the first file graphic.
    As crmalibu says, "Make sure to use html <img> elements".

    <img src="/path/to/filename.php">;
    ---
    Development Projects:
    PHPExcel
    PHPPowerPoint

  5. #5
    SitePoint Zealot
    Join Date
    Dec 2008
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    and how to use a function which generate dynamically that chart i need in my webc
    application.

    i get the following error: The image ..... cannot be displayed, because it contains errors.


    what to do? how?
    thx for the previous advices. worked for me....


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •