php-install | 2003092
Date: 09/17/03
- Next message: Dan Gahlinger: "[PHP-INSTALL] unable to fix this problem"
- Previous message: Simon: "[PHP-INSTALL] template problems"
- In reply to: Simon: "[PHP-INSTALL] template problems"
- Next in thread: Simon: "Re: [PHP-INSTALL] template problems"
- Reply: Simon: "Re: [PHP-INSTALL] template problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi.
Could it be that on your rented server, register globals is set to On, and
on your local its set to off, and the code doesnt have a $page =
$_GET['page'] statement?
just my 2 cents..
-martin
On Wed, 17 Sep 2003, Simon wrote:
> hi,
>
> I've got this problem when using templates on my localhost. The code works
> on my web server which i rent so the code is fine. I have ran php code for
> mysql functions and other for testing purposes.
>
> Below is the code i used in index.php.
>
> INDEX.PHP
>
> <?php
>
> switch ($page)
>
> {
> default : include "error.txt";
> break;
> case "screenshots" : include "news.txt";
> break;
>
> }
>
>
>
>
> ?>
>
>
> When i type say www.myrentedwebsite.com/index.php?page=main it will display the page main.txt
>
> When i try this on my localhost it displays the error.txt file instead. It doesn't recognize the index.php?>?PAGE=MAIN i think !.
>
> Could anybody help me with this problem because i wanted the localhost for testing purposes.
>
> thank you in advance
>
- Next message: Dan Gahlinger: "[PHP-INSTALL] unable to fix this problem"
- Previous message: Simon: "[PHP-INSTALL] template problems"
- In reply to: Simon: "[PHP-INSTALL] template problems"
- Next in thread: Simon: "Re: [PHP-INSTALL] template problems"
- Reply: Simon: "Re: [PHP-INSTALL] template problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

