You are here: Re: PHP and MySQL Connection « All PHP « IT news, forums, messages
Re: PHP and MySQL Connection

Posted by umamahesh on 08/19/06 08:41

Hi,

This is mahesh. u can connect PHP & MYSQL like this
$connect=mysql_pconnect("localhost","username","password");
mysql_close();

where 'p' persists

thanks
mahesh

nobody@thisaddress.net wrote:
> Hello,
>
> Im new to PHP and MySQL and decided to write my first PHP script that
> will take an email address from a form (newsletter sign up) and store it
> in a MySQL database.
>
> From my initial learnings on PHP, I must first connect to the database:
>
> $connect = mysql_connect("localhost","username","password");
>
> Is the above line of code a security risk to hackers and spammers? I
> know PHP is executed on the server side, but I feel having a file
> sitting on the server(http) with this sensitive info is vulnerable.
>
> Is there nothing to worry about or should I be aware of additional
> security measures? Thank you in advance for your time and words.
>
> George
> http://gpalzproductions.com

 

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

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