You are here: Re: Information Regarding $_Session and Extract « PHP Programming Language « IT news, forums, messages
Re: Information Regarding $_Session and Extract

Posted by Erwin Moller on 08/23/07 11:25

kimi wrote:
> Hi ppl,
>
> I am new to PHP. I would need some information on the following:
>
> 1. a) I wanted to know from where the data is extracted and stroed in
> the global assocoative
> arrays ( specifically what will be the contents of $_Session ?)
Hi,

The content of $_SESSION is stored serialized in a file, that is stored
in the directory given in php.ini. Often some tmp directory on the machine.

Find it by using php_info().


> b) Is there any way by which i can get to know all the keys of the
> arrays ( specifically what
> are the Keys of $_Session ?)
> extract($_GET);
> extract($_POST);
> extract($_COOKIE);
> extract($_SERVER);
> #extract($_SESSION);
>

Use print_r() for this.
Don't forget to wrap the HTML <pre> around it.
So:
echo "<pre>";
print_r($_POST);
echo "</pre>";

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

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