Parsing SVG file for PHP content - Apache

Hi all,

I have some SVG scripts I made a couple of years ago, which contain
some PHP code to pull data from a SQL Server DB. These scripts ran OK
when they were in an IIS environment (where it's easy to assign a
script-type to a particular process or engine), but need now to run in
an Apache environment, which I don't know so well.

What do I need to do in the Apache config files in order to get the
SVG scripts to be parsed by the PHP engine?

Thanks for your help,
Rob
robertino [ Mi, 02 April 2008 16:00 ] [ ID #1934045 ]

Re: Parsing SVG file for PHP content - Apache

Hi,

Rob <rbanfield [at] telair.com> wrote:

> What do I need to do in the Apache config files in order to get the
> SVG scripts to be parsed by the PHP engine?

Something like

AddType application/x-httpd-php .svg

(i.e. set MIME type to application/x-httpd-php for the relevant files.
The php module will interpret them then)

-hwh
Hans-Werner Hilse [ Mi, 02 April 2008 16:07 ] [ ID #1934048 ]

Re: Parsing SVG file for PHP content - Apache

Hallo Hans-Werner,

Sorry for the delay - I've only just now managed to get some time for
this! Your solution works perfectly, thanks very much for the help.

Best regards,
Rob DK1ROB




On Apr 2, 4:07=A0pm, Hans-Werner Hilse <hi... [at] web.de> wrote:
> Hi,
>
> Rob <rbanfi... [at] telair.com> wrote:
> > What do I need to do in the Apache config files in order to get the
> > SVG scripts to be parsed by the PHP engine?
>
> Something like
>
> AddType application/x-httpd-php .svg
>
> (i.e. set MIME type to application/x-httpd-php for the relevant files.
> The php module will interpret them then)
>
> -hwh
robertino [ Fr, 04 April 2008 08:19 ] [ ID #1935664 ]
PHP » comp.lang.php » Parsing SVG file for PHP content - Apache

Vorheriges Thema: Question about storing <span> tags in MySQL through PHP
Nächstes Thema: Chinese Stainless Steel Earring KE378