Reply to Re: [PHP] Re: Authentication fails - problem line found

Your name:

Reply:


Posted by Dan on 03/04/05 21:39

John Swartzentruber wrote:
> On 3/4/2005 2:23 PM Dan wrote:
>
>> phpninja wrote:
>>
>>> I think all php functions are case sensitive and must be all
>>> lowercase. try changing "IsSet" to "isset" and give it a run. I im not
>>> 100% sure because i always type every function in php lowercase and
>>> keep it the same throughout the application so i dont ever have to
>>> worry about that. Just a thought.
>>>
>>
>> How about using single quotes around all the action phrases:
>>
>> if (IsSet($_POST['action'])) {
>> // $action = $_POST['action'];
>> } else {
>> $action = $_GET['action'];
>> }
>>
>> I'm slowly learning, myself, on the proper placement of quotes.
>>
>> Thanks
>> -dant
>
>
> I tried that. I also doubt that isset would work any better because that
> condition is being processed correctly.
>
> This script is not something that I wrote, it is something I downloaded.
> I assume that it works correctly for the author on the author's system.
>

what I do sometimes is throw in keywords or the like:

if (IsSet($_POST['action'])) {
// $action = $_POST['action'];
echo "stage 1";
} else {
// $action = $_GET['action'];
echo "stage 2";
}


That helps me to determine the logical order of execution. I don't
think case has anything to do with it, as Chris had asked, but I don't
suppose it would hurt.

YOu can also use phpinfo('INFO_VARIABLES'); to print all env vars to see
if your var is even coming through. However, the above example will
pretty much determine this.

Hope that helps.
-dant

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация