Jump to content


Photo

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


  • Please log in to reply
3 replies to this topic

#1 sso

sso
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 09 July 2006 - 12:31 PM

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...e_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]

#2 sso

sso
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 10 July 2006 - 01:39 AM

Hello all,

After a little bit more googling, i found this http://wiki.svg.org/...guration: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]

#3 Koobi

Koobi
  • Staff Alumni
  • Advanced Member
  • 419 posts
  • LocationColombo, Sri Lanka | South Asia

Posted 10 July 2006 - 04:18 PM

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.

#4 sso

sso
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 13 July 2006 - 04:21 AM

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users