SVG issues with PHP?

Absolution

New Member
Hey everyone, I have come across a problem when using SVG between PHP 5 and PHP 4. Well that is what I assume, it could be something else. But the problem is: I see a difference on how SVG is displayed depending on which server I use, and the first difference I can note is the PHP version installed.

PHP 5 (graphics look fine)
http://www.physics.arizona.edu/~kinnun/about/index.php

PHP 4 (notice the border?)
http://absolutewrestling.net/doubt/about/index.php

Anyone else come across this problem? I am bit at a loss of why this makes such a difference. With my googly eyes I don't see an immediate difference in the output HTML.
 

jonmark

New Member
Now I have opened these files in Inkscape on my computer and made changes for the next printing. I saved the first Inkscape-modified file 4 ways as:

inkscape svg
plain svg
compressed svg
eps

I sent all 4 to the printer and he couldn't open any of them. Any ideas on what I could try differently? I'm assuming he should be able to open an svg file. Am I correct?I have several SVG images I'd like to layout on a page. Firefox and Chrome have given me no issues whatsoever, but Safari only seem to display the SVG image if and only if the document has an ".xhtml" extension.
 

Absolution

New Member
websonalized, thanks for your response! I was able to move them to a different server (which is why the links no longer work). But good news, I figured out what was going on. It is indeed a difference between PHP 4 and 5.

PHP 4 seems to do something to the xml in SVG, or does a weird kind of duplication. This causes problems in displaying SVG files

PHP 5 keeps the files as they are, apparently, so there is no problems, and SVG displays correctly in PHP 5. So you need to get your host/server to update it.

I hope this might help people who are having problems on old servers.
 
Top