Re: [PHP] MySQL password file

2005-07-19 Thread Jason Wong
On Monday 18 July 2005 18:53, Lawrence Kennon wrote: > In my current hosting situation I don't have the ability to store my > file that contains MySQL userids/passwords in a subdirectory that is > not under the server root. In order to protect it from being included > from a foreign host I thought

[PHP] MySQL password file

2005-07-18 Thread Lawrence Kennon
In my current hosting situation I don't have the ability to store my file that contains MySQL userids/passwords in a subdirectory that is not under the server root. In order to protect it from being included from a foreign host I thought up this scheme of using the php_uname function to check th

Re: [PHP] MySQL Password Function

2003-11-06 Thread David Otton
On Thu, 6 Nov 2003 09:09:57 -0500, you wrote: >True, true. I actually use MD5() for the same reason, but, really, if >someone has access to the database to read the hashes, odds are they have >access to the rest of the database and your code. So what are you protecting >really? Many people use th

Re: [PHP] MySQL Password Function

2003-11-06 Thread John Nichel
Shaun wrote: "John Nichel" <[EMAIL PROTECTED]> wrote in message Not that this would make your site more secure (well, I guess it would be more secure than plain text), but just use it in your query INSERT INTO someDB.someTable ( username, password ) VALUES ( '{$username}', PASSWORD('{$password

Re: [PHP] MySQL Password Function

2003-11-06 Thread Shaun
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Shaun wrote: > > > Hi, > > > > I am trying to make my site more secure, can anyone suggest a tutorial on > > using the mySQL password function with PHP. I can't find anything through > > google... > > > > Thanks for your h

Re: [PHP] MySQL Password Function

2003-11-06 Thread John Nichel
Shaun wrote: Hi, I am trying to make my site more secure, can anyone suggest a tutorial on using the mySQL password function with PHP. I can't find anything through google... Thanks for your help Not that this would make your site more secure (well, I guess it would be more secure than plain te

Re: [PHP] MySQL Password Function

2003-11-06 Thread CPT John W. Holmes
From: "Raditha Dissanayake" <[EMAIL PROTECTED]> > >Oh, and this will do almost NOTHING to make your site more secure. Why do > >you think it will? > > You are partly right about this we had a nice flame war about this very > issue couple of weeks ago on the jabber lists. Anyone interested in the >

Re: [PHP] MySQL Password Function

2003-11-06 Thread Raditha Dissanayake
Hi, Oh, and this will do almost NOTHING to make your site more secure. Why do you think it will? ---John Holmes... You are partly right about this we had a nice flame war about this very issue couple of weeks ago on the jabber lists. Anyone interested in the nitty gritty can google on the ja

Re: [PHP] MySQL Password Function

2003-11-06 Thread CPT John W. Holmes
From: "Raditha Dissanayake" <[EMAIL PROTECTED]> > From: "Shaun" > >I am trying to make my site more secure, can anyone suggest a tutorial on > >using the mySQL password function with PHP. I can't find anything through > >google... > > it's very simple intead of using > insert into users set userPas

Re: [PHP] MySQL Password Function

2003-11-06 Thread Raditha Dissanayake
Hi, it's very simple intead of using insert into users set userPassword='123'; you say insert into users set userPassword=password('123'); Shaun wrote: Hi, I am trying to make my site more secure, can anyone suggest a tutorial on using the mySQL password function with PHP. I can't find anything t

[PHP] MySQL Password Function

2003-11-06 Thread Shaun
Hi, I am trying to make my site more secure, can anyone suggest a tutorial on using the mySQL password function with PHP. I can't find anything through google... Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mysql password function

2002-09-22 Thread John Holmes
-Original Message- > From: Murat Ö. [mailto:[EMAIL PROTECTED]] > Sent: Sunday, September 22, 2002 9:33 AM > To: [EMAIL PROTECTED] > Subject: [PHP] mysql password function > > hi, > i want to encode a string that users enter with mysql password function. > but > som

[PHP] mysql password function

2002-09-22 Thread Murat Ö.
hi, i want to encode a string that users enter with mysql password function. but sometimes this code works sometimes don't. mysql warns me: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in the code is: $result=mysql_query("select password(".$_POST[

[PHP] MySQL PASSWORD() Question

2002-08-25 Thread Tony Harrison
If I insert a row's field's value using the PASSWORD() function, will I need to use it or another function to find that row using the same field? - [EMAIL PROTECTED] http://www.cool-palace.com -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] MySQL password()

2002-07-29 Thread David Freeman
> Mmm.. think you misinterpreted my question... > > > http://www.mysql.com/doc/M/i/Miscellaneous_functions.html > > PASSWORD(str) > how do you unPASSWORD(str) in PHP? Basically, you don't. Instead, what you do is use the password that was provided as user input. You create a suitable

Re: [PHP] MySQL password()

2002-07-29 Thread Liam MacKenzie
ECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 30, 2002 4:31 PM Subject: Re: [PHP] MySQL password() > Try doing on the first time this: > $query="SELECT * FROM users where username='$PHP_AUTH_USER' and passwd > =password($PHP_AUTH_PW)"; > then wi

[PHP] MySQL password()

2002-07-29 Thread Liam MacKenzie
Hi all, I do this: dbconnect(); $query="SELECT * FROM users where username='$PHP_AUTH_USER'"; $result=mysql_query($query); $list=mysql_fetch_array($result); if ($PHP_AUTH_PW !== $list[passwd] || "" == $PHP_AUTH_PW || "all" != $list[domain]){ Header("WWW-authenticate: basic realm=\"EM

RE: [PHP] MYSQL Password

2001-05-18 Thread scott [gts]
variable and access it from PHP, you can do this, but i dont know how ;) becuase i've never had to do it. beware of any security risks that this might open you up for... storing passwords as env. vars > -Original Message- > From: Jack Sasportas [mailto:[EMAIL PROTECTED]] >

Re: [PHP] MYSQL Password

2001-05-17 Thread John Monfort
Can you connect to MySQL manually? If so, then you should be able to connect with PHP's mysql_connect($username,$password,$host); __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is wa

Re: [PHP] MYSQL Password

2001-05-17 Thread Jack Sasportas
pass the parameter -p and it will ask you for the password Andreas Pucko wrote: > Hello, > > I am trying to get mysql running and connect via php to it. > > how can I set the password in a unixshell to get access to it? > > When I try to access the db I get: > > Warning: MySQL Connection Fai

[PHP] MYSQL Password

2001-05-17 Thread Andreas Pucko
Hello, I am trying to get mysql running and connect via php to it. how can I set the password in a unixshell to get access to it? When I try to access the db I get: Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO) in /psr/mysqladmin/lib.inc.php o

Re: [PHP] PHP MySQL password

2001-01-30 Thread Michael Hall
One way to handle this is to put your password (along with any other database details) into a config file (eg. yoursite.cfg) and include/require this file in your script. The config file can then be stored outside the web tree, and referred to with an absolute path. Mick On Tue, 30 Jan 2001, Eg

[PHP] PHP MySQL password

2001-01-30 Thread Egan
I know that ~.my.cnf with [client] password={mypass} is the recommended method of securing your MySQL password when using a shell command line to access MySQL. But what is the recommended method for MySQL password security via PHP? Is there some way to make it use the ~.my.cnf file? It se