Hi -

Yes, you can process php code in an svg document, IF you set up your server
to do so first.  Just putting in

<? echo "hello"; ?> won't do it.

For instructions on how to do this, please see:

http://www.carto.net/papers/svg/samples/serverside_svg_php.shtml

Stephen



On 5/15/07, Olaf Schnabel <[EMAIL PROTECTED]> wrote:
>
>   Hi abdelhediiahmed
>
> just define a new php document and print the calculated values in the
> svg document:
>
> <?php
> $b=20;
> $c=10;
> $a=$b+$c;
> ?>
> <svg ...>
> <rect x="20" y="20" width="<?php echo $a; ?>" height="<?php echo $b; ?>"
> />
> </svg>
>
> Since the php code is executed first, the svg document is then complete
> for the rendering in a viewer or browser.
>
> Regards
> Olaf
>
> abdelhediiahmed wrote:
> >
> >
> > please;
> >
> > is there someone who can tell me how to to include php scripts in svg
> > documents ?
> > I mean how to include values of php script in asvg document.
> > Thanks
>
> --
> Dr. Olaf Schnabel
> ETH Zurich
> Institute of Cartography
> CH-8093 Zurich
> Switzerland
>
> tel: ++41 44 633 3031
> fax: ++41 44 633 1153
> e-mail: [EMAIL PROTECTED] <schnabel%40karto.baug.ethz.ch>
> www1: http://www.ika.ethz.ch/schnabel
> www2: http://www.e-cartouche.ch
>  
>


[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to