Re: Re: PHP, mySQL, Apache and Windows XP Pro
| From: | Seth Russell | Date: | Fri, 17 Jun 2005 20:53:43 +0000 |
| Subject: | Re: Re: PHP, mySQL, Apache and Windows XP Pro | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-16308@lists.php.net to get a copy of this message | ||
From what you describe it sounds like php is not enabled in your apache.
For example, If I run the following php page
<?php
$_SESSION['kundnummer'] = "nummer";
$_SESSION['kundnamn'] = "name";
?>
<html>
<body>
<h3 align="center">Welcome <?=$_SESSION['kundnamn']?></h3>
</body>
<html>
If php is not enabled, the output in the browser is just "Welcome". If php
is enabled, the output is "Welcome name". Also, if you view source on the
page when php is not enabled, you'll see the <?php tag.
seth
On 6/17/05, Oscar Andersson <oscarandersson2@hotmail.com> wrote:
>
> No i dont get any errors.
>
> When i loggin to my webshop a save the name in two session variables
> First the customer number
> $_SESSION['kundnummer'] = $kundnummer;
> Second the customers name
> $_SESSION['kundnamn'] = $namn;
>
> Then i print this in a page with
> <h3 align="center">Welcome
> <?=$_SESSION['kundnamn']?></h3>
>
> Oscar Andersson
>
> ""Oscar Andersson"" <oscarandersson2@hotmail.com> skrev i meddelandet
> news:57.11.25033.6AED2B24@pb1.pair.com...
> >I have installed PHP5 and apache 2 on my computer.
> > I have made a application in PHP 5.0 that use session variabels. This
> > application works ok when i run it at my IIS webserver but when i try it
> > with the apache webserver it doesent work. I think it is something with
> > the session variables. Maybe i have to change something with the apache
> > server ?
> >
> > I hope for help
> > Oscar Andersson
>