Re: session svg
| From: | Gabor Hojtsy | Date: | Fri, 17 Jun 2005 15:19:34 +0000 |
| Subject: | Re: session svg | ||
| References: | 1 | Groups: | php.doc.chm |
| Request: | Send a blank email to php-doc-chm+get-969@lists.php.net to get a copy of this message | ||
This is not the right place to ask support questions. Please direct PHP
related questions to php-general@lists.php.net
Regards,
Gabor Hojtsy
04083259@brookes.ac.uk wrote:
> hi every one
>
> i am using php5 apache2 windows-xp and internet exlorer version 6 to
> create svg tools (adobe 3 the plagin)
> i have written a very simple code which has a session variable
> the problem when i click the next botton to go to the next page a dialog
> box comes up (called download file ) giving an options open , save ,
> cancel,more info
>
> why this box comes up :
> is it becouse wrong configration in the php.ini
> or is it becouse server configration
> or becouse IE dosn't support this kind of functionality
>
> could any one please help me , becouse i think i am not going any where
> with my solutions
>
> the code for the first page
>
> <?php
> session_start();
> header("Content-type: image/svg+xml");
>
> print('<?xml version="1.0" encoding="iso-8859-1"?>');
> ?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
> "http://www.w3.org/TR/SVG/DTD/svg10.dtd">
> <svg width="500" height="500" viewBox="0 0 500 500">
> <?php
>
> $_SESSION['ses_vars']="hello world";
> ?>
> <a xlink:href="zz.php"><text x="50"
> y="50">next</text></a>
> </svg>
>
>
>
> the second file :
>
> <?php
> session_start();
> header("Content-type: image/svg+xml");
>
> print('<?xml version="1.0" encoding="iso-8859-1"?>');
> ?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
> "http://www.w3.org/TR/SVG/DTD/svg10.dtd">
> <svg width="500" height="500" viewBox="0 0 500 500">
> <?php
>
> echo ($_SESSION['ses_vars']);
> ?>
> <a xlink:href="zzz.php"><text x="50"
> y="50">next</text></a>
> </svg>
>