* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
> 
> My local setup is Win98SE, Apache 2.0.49 and PHP 4.3.6. The remote server 
> is Linux 2.4.20, Apache 1.3.29, and PHP 4.3.3.
> 
> Matt's version of the script is at:
> 
> http://www.samspublishing.com/articles/article.asp?p=29587&seqNum=7
> 
> If anyone has any clues to this mystery, it would be a help.
 
This demo script is a victim of register_globals assumed to be on,
as expected with older scripts.

You can add this line to the top of the script to be portable in
either case:

  import_request_variables('GPC');

Or (prefered) re-write  lines 5-12:

  if (isset($_GET['guess'])) {
    $guess = $_GET['guess'];
  } else {
    $guess = null;
  }

  if (is_null($guess) ) {
    $message = "Welcome to the guessing machine!";
  } elseif ($guess > $num_to_guess) {
  ...



Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to