Re: Another PHP problem

by Nik Gare <nik(at)cheddarcheese.de>

 Date:  Sat, 22 Apr 2000 17:47:25 +0200
 To:  jmcates(at)worldnet.att.net,
hwg-languages(at)hwg.org
 References:  aol
  todo: View Thread, Original
In article <b2.42cf82c.26330c6f(at)aol.com>,
   <Reywob(at)aol.com> wrote:
> Thanks for that - amazing what you can miss!  That cured one problem

> The problem now:
> If $site isn't set then it returns an error message (reproduced below).  e.g. 
> http://www.narrowgauge.f2s.com/phorum?site=pwp    works OK, but
> http://www.narrowgauge.f2s.com/phorum     returns this message:
> ===========
> Warning: Uninitialized variable or array index or property (site) in 
> ./include/header.php on line 4

> Warning: Uninitialized variable or array index or property (site) in 
> ./include/header.php on line 8

> Warning: Using uninitialized variable $site in 
> /web/sites/31/reywob/www.narrowgauge.f2s.com/phorum/index.php on line 92 
> ===============

> How can I get round that?

The easy way is probably to alter the php3.ini (or php.ini) file, changing
the error_reporting variable to 7
Obviously, the best way to fix it would be to keep learning PHP3, and then
tell me how to fix it ;-)

TTFN
Nik

-- 
http://www.cheddarcheese.de

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA