Objectmix
Tags Register Mark Forums Read

array : PHP

This is a discussion on array within the PHP forums in Programming Languages category; hi dear this is possible carry on. "Murat SAYGILI" <saygili @ altay.com.tr> wrote in message news:005501cb7a84$8f53d9e0$7d00000a @ altaymrk... > Hi, > Can I put my oracle selection into array. > For example > > this is a table > name surname address > john silver california > budd elley newyork > > > > I want to insert $data[1][1]=john > and $data[1][2]=silver and so on. I am asking > this because I will make table and insert it with selection results. > Thanks > Murat > > > -- > PHP General Mailing List ( http://www.php.net/ ) > To unsubscribe, ...



Reply

 

LinkBack Thread Tools
  #1  
Old 11-02-2000, 09:58 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: [PHP] array

hi dear
this is possible carry on.

"Murat SAYGILI" <saygili@altay.com.tr> wrote in message
news:005501cb7a84$8f53d9e0$7d00000a@altaymrk...
> Hi,
> Can I put my oracle selection into array.
> For example
>
> this is a table
> name surname address
> john silver california
> budd elley newyork
>
>
>
> I want to insert $data[1][1]=john
> and $data[1][2]=silver and so on. I am asking
> this because I will make table and insert it with selection results.
> Thanks
> Murat
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>



Reply With Quote
  #2  
Old 11-12-2000, 06:53 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Cookie Lifetime for SessionID

I know that when you run session_start() it sets/gets the sessionid from a
cookie (if you have that setup in PHP, which I do). I also know that the
lifetime of these is generally zero, until the browser closes, but is there
a way to set the lifetime of the sessionID when I call session_start()?

--Thanks

Reply With Quote
  #3  
Old 11-12-2000, 09:29 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: [PHP] Cookie Lifetime for SessionID

Matt wrote:

>I know that when you run session_start() it sets/gets the sessionid from a
>cookie (if you have that setup in PHP, which I do). I also know that the
>lifetime of these is generally zero, until the browser closes, but is there
>a way to set the lifetime of the sessionID when I call session_start()?


Maybe this'll help..

void session_set_cookie_params (int lifetime [, string path [, string domain]])

http://www.php.net/manual/html/funct...ie-params.html

-Brian

Reply With Quote
  #4  
Old 11-13-2000, 05:38 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default MD5

This may be an dumb question...

After I encrypt a string using the md5() function, how do I decrypt it back
into the original string?

--Thanks

Reply With Quote
  #5  
Old 11-13-2000, 05:47 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: [PHP] MD5

On Mon, 13 Nov 2000, Matt wrote:

> This may be an dumb question...
>
> After I encrypt a string using the md5() function, how do I decrypt it back
> into the original string?
>
> --Thanks
>


Simple: you can't.

--
Ignacio Vazquez-Abrams <ignacio@openservices.net>

Reply With Quote
  #6  
Old 11-13-2000, 05:49 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: [PHP] MD5

Matt (matt@smokescreen.org) recycled some electrons by writing:

> After I encrypt a string using the md5() function, how do I decrypt it back
> into the original string?


You don't. MD5 is a hashing thing, not an encrypting thing, so you can't get
the original string back.



Stewart

Reply With Quote
  #7  
Old 11-13-2000, 05:51 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: [PHP] MD5

> After I encrypt a string using the md5() function, how do I decrypt it back
> into the original string?
>

MD5 is one-way encryption meaning you can't decrypt it. If you store something like user's
passwords using MD5 and then want to compare what the user typed in to what is stored you
just need to compare the two MD5'd values.

- Jamie

Reply With Quote
  #8  
Old 11-13-2000, 05:53 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: [PHP] MD5

MD5 doesn't decrypt, it's used for a comparison, good for storing
passwords in a database, because you can validate whether someone
entered the correct password, but if someone gained access to your db
they wouldn't see the passwords.

make sense?

Steve Nelson
http://www.SecretAgents.com
Tools for Fusebox Developers

Matt wrote:
>
> This may be an dumb question...
>
> After I encrypt a string using the md5() function, how do I decrypt it back
> into the original string?
>
> --Thanks
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net


--
Reply With Quote
  #9  
Old 11-13-2000, 05:55 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default RE: [PHP] MD5

Evidently you already know that you can't. That's already been answered.
You might look into using mcrypt. It will allow you encrypt/decrypt
strings.

http://www.php.net/manual/ref.mcrypt.php

Jason

-----Original Message-----
From: Matt [mailto:matt@smokescreen.org]
Sent: Monday, November 13, 2000 3:39 PM
To: php-general@lists.php.net
Subject: [PHP] MD5


This may be an dumb question...

After I encrypt a string using the md5() function, how do I decrypt it back
into the original string?

--Thanks


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net



__________________________________________________ _____
Site Design, Hosting, and E-Commerce at www.webpipe.net
Reply With Quote
Reply

Thread Tools



All times are GMT -5. The time now is 08:44 AM.