|
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]
|