Jump to content

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]
Link to comment
https://forums.phpfreaks.com/topic/14089-php-firebird-pdf-svg-apache-great/
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]
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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.