macromedia.dreamweaver
[Top] [All Lists]

Re: Question for Murray

Subject: Re: Question for Murray
From: Michael Fesser <netizen@xxxxxx>
Date: Thu, 31 Jul 2008 18:36:06 +0200
Newsgroups: macromedia.dreamweaver

.oO(Murray *ACE*)

>It's not possible for that code to 'work'.  There is nothing that is 
>assigning $dom a value, thus, this test -
>
> if ($dom){
>
>will always fail and the PHP scripting will never be executed.

On an improperly configured server it will "work", if register_globals
is enabled. Of course the correct way would be

if (!empty($_POST['dom'])) {
  ...
}

Another problem is that the script uses short open tags, which might
also cause it to fail on some servers.

Micha

<Prev in Thread] Current Thread [Next in Thread>