RE: [PHP-WIN] PHP or Apache isn't playing nice

From: Date: Thu, 13 Feb 2003 00:06:42 +0000
Subject: RE: [PHP-WIN] PHP or Apache isn't playing nice
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18509@lists.php.net to get a copy of this message
This may just be me, and I could be wrong, but I've had problems with relative paths and such using windows boxes before. Windows had always been an ass to me on this. You may need to try specifying the directory absolutely. Are you getting any error messages? chris kranz fatcuban.com -----Original Message----- From: o-juice [mailto:o-juice@o-juice.za.net] Sent: 12 February 2003 23:27 To: php-windows@lists.php.net Subject: [PHP-WIN] PHP or Apache isn't playing nice 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@o-juice.za.net -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#18509) next »