[PHP] a general perl like pares of the query string...

2001-09-08 Thread Aaron Moore
Ok if you have a query string from like file.php?bob=managerphil=employ how do i split the bob=manager and phil=employ dynamically? because i may have 2 or 3 elements and i just want to sepearte them all and access them via an array such as if ($var[bob] = manager) etc so a loop that would

[PHP] Re: a general perl like pares of the query string...

2001-09-08 Thread Aaron Moore
Well hers teh perl version of the the parser... how do i convert this to php $tmp = $ENV{'QUERY_STRING'}; @pairs = split(//, $tmp); foreach $item (@pairs) { ($key, $content) = split(/=/,$item,2); $content =~ tr/+/ /; $content =~ s/%(..)/pack(c,hex($1))/ge; $fields{$key} = $content; } --

Re: [PHP] Re: a general perl like pares of the query string...

2001-09-08 Thread Aaron Moore
Wow... ok now i get it.. thanks guys Aaron Moore Michael Kimsal [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Aaron, CC Zona wrote before that: If track_vars is on (always true if version = 4.0.3), then the global vars $HTTP_GET_V

[PHP] cookie error

2001-09-08 Thread Aaron Moore
when i submit a form and try to have it post a cookie in the php thing i get this error message: Warning: Cannot add header information - headers already sent by (output started at /usr/local/www/data/vi2dev/root/layout/functions.php:167) in /usr/local/www/data/vi2dev/root/admin/manager.php on

[PHP] accessing a global in a function???

2001-09-04 Thread Aaron Moore
Sorry about the newbie question. I have a config.php file which contains a string which I would like a function to access. How do i make it global so that it can do so. Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-03 Thread Aaron Moore
its functions.php as i've said my include works... because i'm able to echo from it... i just can't access the functions. Cc Zona [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Aaron Moore) wrote:

[PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread Aaron Moore
ok i have this at the top of my page: include(/www/data/vi2/root/layout/functions.php); include(/www/data/vi2/root/layout/config.php); require(/www/data/vi2/root/layout/init.php); but when I call one of the functions included in functions.php i get a message saying : Fatal error: Call to

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread Aaron Moore
Its obviously not finding it... my question is why the includes don't work??? Thanks Aaron Moore Don Read [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On 03-Sep-2001 Aaron Moore wrote: ok i have this at the top of my page: include(/www/data/

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread Aaron Moore
Heres what I have so far. I've put all the fiels into one folder, and i know the paths are correct since they don't give an include error. The error resides in line 6 of test.php where i try to call a function which is in function.php the test.php file : ___