You are here: Re: $GLOBALS array « PHP Programming Language « IT news, forums, messages
Re: $GLOBALS array

Posted by Erwin Moller on 11/06/06 09:00

Michael Wild wrote:

> Erwin Moller wrote:
>> Michael Wild wrote:
>>
>>> On Fri, 03 Nov 2006 15:35:33 +0100, Erwin Moller wrote:
>>>
>>>> whiskey wrote:
>>>>
>>>>> Do a print_r($LOBALS), maybe you misspelled the keys.
>>>> And you mispelled GLOBALS.
>>>> ;-)
>>>>
>>>> But besides the typo: good advise.
>>>>
>>>> Regards,
>>>> Erwin Moller
>>>
>>> :-)
>>>
>>> I already did, and it looks like:
>>>
>>> Array (<stuff left out> [_GET] => [_POST] => )
>>>
>>> On my laptop it looks like:
>>>
>>> Array (<stuff left out> [_GET] => array() [_POST] => array() )
>>>
>>>
>>> So there definitely is a difference.
>>>
>>>
>>> Michael
>>
>> Hi,
>>
>> To make the print_r() more readable, use <pre>
>>
>> <pre>
>> <?php print_r($GLOBALS); ?>
>> </pre>
>>
>> But more usefull maybe in your situation:
>>
>> <pre>
>> <?php print_r($_POST); ?>
>> </pre>
>>
>> and
>>
>> <pre>
>> <?php print_r($_GET); ?>
>> </pre>
>>
>> Regards,
>> Erwin
>
>
> well, they are just not set... a test for $_GET==NULL or $_POST==NULL
> returns true.
>
> thanks for the formatting tip!
>
> michael

Glad I could help with the formatting.
But sorry, I have no clue why $_GET and $_POST are NULL.
I never saw that before.
Contact your (lazy) ISP and kick his/her lazy ass.
If you pay for their service they should help you with such enormous
problems ($_GET and $_POST are completely accepted and used everywhere, I
couldn't make an app without them).

Good luck. :-/

Regards,
Erwin Moller

 

Navigation:

[Reply to this 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

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