coredveloper — 2013-10-20T11:36:59-04:00 — #1
Hi, I have a page graph.php where I have drawn a graph using highcharts.js.
I want to include that graph in another page. Can I use <img src="graph.php"> ? Please suggest me the right of embedding in any page.
c0dingl_fe — 2013-10-21T04:30:22-04:00 — #2
Why don't you just use the include() function to include the script?
Wherever you want the graph to display, just include it:
Depends where the graph.php is located relative to the calling script to determine the path of the file.
droopsnoot — 2013-10-21T05:08:00-04:00 — #3
I belive you can call the routine as you first posted, as the src element of an img tag, as long as the only thing your php routine returns is an image. I haven't tried this with php, but used it for displaying captcha images.