Date: 02/13/03
- Next message: Neil Smith: "[PHP-WIN] Re:Subject: Need Help with Classes"
- Previous message: J.Veenhuijsen: "[PHP-WIN] Re: [introduction - Import text file]"
- In reply to: wisi: "[PHP-WIN] Re: PHP or Apache isn't playing nice"
- Next in thread: Rico Derks: "Re: [PHP-WIN] PHP or Apache isn't playing nice"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ah, missed this when I first looked at your problem.
If you can't change register_globals in the php.ini file, try using
$_GET[mod]
instead of $mod
chris kranz
fatcuban.com
-----Original Message-----
From: wisi [mailto:wisi <email protected>]
Sent: 10 February 2003 03:57
To: php-windows <email protected>
Subject: [PHP-WIN] Re: PHP or Apache isn't playing nice
register_globals must be turned ON.
"O-Juice" <o-juice <email protected>> wrote in message
news:20030212232610.26026.qmail <email protected>
> Hello. I've got the following set-up and working at home (on a Win98SE
> workstation):
>
> Apache 2.0.43
> PHP 4.2.1
>
> For some reason the following code (which works fine on my on-line PHP
host)
> refuses to work at home:
>
> <?php
> if ($mod) {
> switch($mod) {
> case "news":
> case "links":
> include ("../" . $mod . "/content.php");
> break;
> default:
> include ("../errorpages/404.php");
> }
> } else {
> include ("../news/content.php");
> }
> ?>
>
> The way it's supposed to work is a user clicks on a link, e.g.
> "http://www.blah.com/index.php?mod=news" and the page with the content
that
> they're requesting is then displayed. Is there some setting missing in
> Apache or PHP on my home system or is there some other explanation for
why
> things are going awry my side?
>
> I'd appreciate any help. Thanks. :-)
>
> --
> o-juice <email protected>
>
>
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Neil Smith: "[PHP-WIN] Re:Subject: Need Help with Classes"
- Previous message: J.Veenhuijsen: "[PHP-WIN] Re: [introduction - Import text file]"
- In reply to: wisi: "[PHP-WIN] Re: PHP or Apache isn't playing nice"
- Next in thread: Rico Derks: "Re: [PHP-WIN] PHP or Apache isn't playing nice"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

