macromedia.dreamweaver
[Top] [All Lists]

Re: Question for Murray

Subject: Re: Question for Murray
From: "Murray *ACE*" <forums@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 31 Jul 2008 12:58:46 -0400
Newsgroups: macromedia.dreamweaver


On an improperly configured server it will "work", if register_globals
is enabled.

Thanks, Micha.  I don't have that bit of PHP lore in my bag.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Michael Fesser" <netizen@xxxxxx> wrote in message news:h7q39499j6ue9ot0b2jt863068bi7h3vvd@xxxxxxxxxx
.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>