[PHP] Cookie array

2002-08-10 Thread Jan - CWIZO

Hi !

How can I stoor array in to a cookie ?

Do I just define an array and stoore it in a cookie ?
How do I access the data in the array then ?


-- 
LP
CWIZO
www.3delavnica.com
www.ks-con.si
www.WetSoftware.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Cookie array

2002-08-11 Thread Jan - CWIZO

Thanx !

Dne nedelja 11. avgust 2002 18:10 je B.C. Lance napisal(a):
> to store:
>
> setcookie ("TestCookie[0]", "zero", time() + 3600);
> setcookie ("TestCookie[1]", "one", time() + 3600);
> setcookie ("TestCookie[2]", "two", time() + 3600);
>
> or
>
> setcookie ("TestCookie[one]", "1", time() + 3600);
> setcookie ("TestCookie[two]", "2", time() + 3600);
> setcookie ("TestCookie[three]", "3", time() + 3600);
>
>
> to retrieve:
>
> foreach($_COOKIE["TestCookie"] as $key => $value) {
>echo "{$value}";
> }
>
> or
>
> echo $_COOKIE["TestCookie"]["one"];
> echo $_COOKIE["TestCookie"][1];
>
> Jan - Cwizo wrote:
> > Hi !
> >
> > How can I stoor array in to a cookie ?
> >
> > Do I just define an array and stoore it in a cookie ?
> > How do I access the data in the array then ?

-- 
LP
CWIZO
www.3delavnica.com
www.ks-con.si
www.WetSoftware.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: [PHP-INST] RedHat 7.3 apache is running but where is PHP support

2002-08-11 Thread Jan - CWIZO

Did that.
Removed all stuff from apache, php & mysql.

Now what ?
I will download the source code for apache and mysql now.


LP

Dne nedelja 11. avgust 2002 20:56 je [EMAIL PROTECTED] napisal(a):
> remove dependent modules,
>  to find out dependencies:
>
> rpm -q --whatrequires php
>
> the list should have some php/mysql stuff, dump it all,
>
> R>
>
> >Hi
> >
> >
> >If i type rpm -e apache I get an error that that would destory some
> >dependinces ...
> >
> >In replay to Erik :
> >
> >I have downloaded the source code for PHP 4.2.2
> >I can download the source code for apache and mysql to if you wish !
> >
> >So basicly I need to have support for mysql and for tracking varibles
> > sended over forms (get, post).
> >
> >Nothing exsotic no extra libraries.
> >
> >O I need support for sessions if that is an extra feautre...
> >
> >
> >So how do I remove all apache all php all mysql from my computer, so I can
> >start from the beginning ?
> >
> >And please be clear with what you write :)
> >
> >
> >
> >LP
> >CWIZO
> >www.3delavnica.com
> >www.ks-con.si
> >www.WetSoftware.com
> >
> >Dne nedelja 11. avgust 2002 16:56 ste napisali:
> >> hey, when I started with 7.3 and Linux, I found that the best way was to
> >> get rid of all the installed crap and then start again.
> >>
> >> rpm -e apache for example will dump apache from your disk, I did that
> >> also with php and mysql client and server,
> >>
> >> then I grabbed the newest versions from rpmfind.net and installed apache
> >> then mysql then php 4.X with mysql support
> >>
> >> word of caution though, you can get the same rpms from the Valhalla Cd's
> >> but I found that for expample RPMs o mysql didn;t work (php did) , while
> >> the one from their site worked like a charm
> >>
> >> R>
> >>
> >> oh yeah, invoke php -v (I believe) for the version and to see if it even
> >> runs, also chance has it that your apache configuration will not process
> >> .html with embedded php but .php only,
> >>
> >> R>
> >>
> >> >Hi !
> >> >
> >> >
> >> >I just installeted RedHat 7.3
> >> >
> >> >I started apache with :
> >> >
> >> >/etc/httpd start
> >> >
> >> >I opend the browser and typed localhost.
> >> >The welcome page displayed.
> >> >Then I have created a PHP script file with this in it :
> >> >
> >> > >> >
> >> >
> >> >phpinof();
> >> >
> >> >?>
> >> >
> >> >opend it and I diden't get the result but the source (the fule is in
> >> > the root
> >> >folder of apache ( /var/www/html/ ) )
> >> >
> >> >How do I enable PHP ??
> >> >And I know that in RedHat 7.3 there is PHP 4.1.2 how do I setu up the
> >> > PHP 4.2.2 ??
> >> >
> >> >
> >> >And please I am a total beginner in linux so be clear with what you
> >> > write
> >> >
> >> > :)
> >> >
> >> >PS : Excuse my spelling, English is not my native language
> >> >
> >> >
> >> >--
> >> >LP
> >> >CWIZO
> >> >www.3delavnica.com
> >> >www.ks-con.si
> >> >www.WetSoftware.com
> >> >
> >> >--
> >> >PHP Install Mailing List (http://www.php.net/)
> >> >To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >> --__-__-__
> >> eat pasta
> >> type fasta
> >
> >--
> >PHP Install Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
> --__-__-__
> eat pasta
> type fasta

-- 
LP
CWIZO
www.3delavnica.com
www.ks-con.si
www.WetSoftware.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php