Re: upgrade issues

From: Date: Thu, 06 Feb 2003 15:26:26 +0000
Subject: Re: upgrade issues
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134624@lists.php.net to get a copy of this message
Brian V Bonini schrieb: > What's wrong with this snippet of code that would make it stop working > after upgrading from 4.0.6 to 4.3.0 > > > <?php > > if (!$id) { > include "pagetop.inc.php"; > } > if ($id == 1) { > $title = "xxx"; > include "pagetop.inc.php"; > ?> > <p>Stuff</p> > > <?php } ?> > look at http://www.php.net/manual/en/tutorial.oldcode.php it is cause $id isn't set to the value of your uri anymore ! set "register_globals on" in your PHP.INI or use $_GET['id'] -- @ Goetz Lohmann, Germany | Web-Developer & Sys-Admin \/ ------------------------------------------------------ () He's the fellow that people wonder what he does and || why the company needs him, until he goes on vacation.

« previous php.general (#134624) next »