| Subject: | Re: Question for Murray |
|---|---|
| From: | "Phill Hellewell \(pmsoftware\)" <phill@xxxxxxxxxxxxxxxx> |
| Date: | Thu, 31 Jul 2008 18:21:52 +0100 |
| Newsgroups: | macromedia.dreamweaver |
I reckon you've probably cracked the conundrum of why my copy worked and spentagesearchings didn't as a quick check on my host reveals that register_globals is indeed turned on. Which surprises me as I thought that this was generally ill advised. Perhaps spentagesearchings host has this turned off. I didn't really look at the script I just copied it to try and help the OP. I'd have to say that given these observations and Doozas discovery regarding handling of all domain variants I would recommend against the use of this script as is. Thanks for solving the mystery Micha. Phill "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> |
|---|---|---|
| ||
| Previous by Date: | Re: Can't delete frame, Alan |
|---|---|
| Next by Date: | Re: Can't delete frame, Murray *ACE* |
| Previous by Thread: | Re: Question for Murray, Michael Fesser |
| Next by Thread: | Re: Question for Murray, Michael Fesser |
| Indexes: | [Date] [Thread] [Top] [All Lists] |