Re: [PHP] Best way to store login data?

2002-06-14 Thread Pradeep Dsouza

Hi 

I would suggest you use a DB for the logins 
and use the id 

Avoid using cookies use sessions that way u have nothing 
on the client end 

Pradeep 



- Original Message - 
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 15, 2002 10:39 AM
Subject: [PHP] Best way to store login data?


> I have a site with logins.  I am planning to recode logins soon (right 
> now the username and password are stored in cookies with no encoding). 
>  In your opinion, which of these is a better idea:
> 1. Storing in two cookies with md5 encoding for the password
> 2. Use sessions
> 3. Store logins in a database, and put an id from there into a cookie
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


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




Re: [PHP] Ascii Value

2002-06-18 Thread Pradeep Dsouza




The name of the function is ord

Pradeep Dsouza

Naharonline.com

- Original Message -
From: "James Drabb" <[EMAIL PROTECTED]>
To: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, June 19, 2002 12:27 AM
Subject: [PHP] Ascii Value


Hey *,

In C I can cast a char 'j' to an int and get it's ascii value.  Is there a
funciton in PHP
to do this with a string containing a single char (i.e. "j")?  I could write
a big
switch for all the chars of the alphabet, however I was hoping for a better
approach?

Jim Drabb

--
-
Never ask a geek why, just nod your head and slowly back away
-
James Drabb JR
Programmer Analyst
Darden Restaurants
Business Systems
[EMAIL PROTECTED]
[EMAIL PROTECTED]

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



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




Re: [PHP] using a variable stored in a variable.

2002-06-18 Thread Pradeep Dsouza

$var1 = "Names";
$var2 = &$var1;

Pradeep Dsouza

Naharonline.com


- Original Message - 
From: "Renaldo De Silva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 19, 2002 4:14 AM
Subject: [PHP] using a variable stored in a variable.


> how can i use a variable stored in a vaiable in a if statement?
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


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




Re: [PHP] function echo '

2002-06-25 Thread Pradeep Dsouza

Yes you can 

">
Link Here 

Pradeep 




Can you use

 or is this bad coding?


"René moonen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Use the escape character to output double quotes
>
> echo '';
>
> René