Jump to content

Archived

This topic is now archived and is closed to further replies.

sso

php + firebird + pdf + svg + apache = great!

Recommended Posts

Hello all,

Long time reader of this forum, first time poster. I apologise before hand on the noobiness of my questions. I have searched and seem unable to find the answers that I am looking for.

I am trying to write an in-house reporting tool for our manufacturing database which uses firebird. I am currently using php + firebird + pdf + apache and everything is great so far. I would like to add svg as our internal computers are all running linux with firefox browsers. This will mean that I am able to generate graphs using SVG that can be embeded into the page.

I have looked around a bit on google and is able to get apache to show svg and I am even able to get firefox to show a php generate a page which embeds an svg (the svg file is not generated by php such as box.svg) file correctly as well as use php to generate an svg file (box.psvg, this does not load on the page, it asks for an external application). The problem however comes when i am trying to embed a non-static svg file generated by php using the .psvg extension and getting the .psvg to load in the page itself. At the moment I am getting the page with nothing showing up.

I am thinking that i might have stuffed up the apache httpd.conf file as i know that firefox is able to embed non-static .psvg file. example : http://www.carto.net/papers/svg/samples/serverside_svg_php.shtml

I am running php version 4.39 with apache 1.3.27 as the webserver and client on a pretty stock fedora core 5 system. I have also included the following files from the webserver
===================================================
/etc/httpd/conf/httpd.conf
===============
box.svg which shows up on firefox
box.psvg which firefox loads but not in the browser, instead asking me to open an external application
svg.php which is supposed to embed the box.psvg
===================================================

I am thinking that it might be the httpd.conf file that I have messed up. Would really appreciate any and all help that can be given.

Apologise again if I missed a search or this might not be the right place to ask.

regards,

sso





[attachment deleted by admin]

Share this post


Link to post
Share on other sites
Hello all,

After a little bit more googling, i found this http://wiki.svg.org/Server_Configuration:Apache and its basically but and paste on the httpd.conf and it works now. If anyone wants info on how to setup php + firebird + pdf + svg + apache, leave a note.

thanks again,

sso

The correct updated httpd.conf file is also attached here


[attachment deleted by admin]

Share this post


Link to post
Share on other sites
thanks for that link.

yeah svg is pretty sweet. 3 years ago i thought it would wipe flash out...i'm surprised Adobe hasn't pushed for that after aquiring macromedia..they had a great SVG plugin.
svg would have been good though because it could do everything Flash could if you knew enough JavaScript and google can index it.

just imagine the possibilities with SVG+AJAX. i'm just waiting for someone to do something crazy with em...IE users will need to download an SVG plugin though.

Share this post


Link to post
Share on other sites
totally agree koobi.. i have always been stuck on the  graphics and reporting portion of my php web apps.. but now no more
Its good stuff

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.