You are here: Re: Connection Script... a better way? « PHP SQL « IT news, forums, messages
Re: Connection Script... a better way?

Posted by Ron on 03/01/07 14:38

On 1 Mar 2007 02:19:44 -0800, "Stevene"
<steve.with.the.hood@gmail.com> wrote:

>> I connect to my database in a way that I think is pretty unsecure.
>
>> <?
>> $dbh=mysql_connect ("localhost", "database", "password")
>> or die ('I cannot connect to the database because: ' . mysql_error());
>> mysql_select_db ("database_table");
>> echo "<p>Database selected...\n";
>>
>
>
>I'm new to php development, in particular, and I am curious, why is
>this method insecure? Are there ways around the preprocessor so that
>the script can be read?
Yes,this is what I read. So the above would give direct access to the
database. In some cases I think people could be makind a database with
the same user/pw info as their main login as I used to do. Now I
created a secong login and if something was wrng could change the
password or delete the login.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация