# Security in PHP

**URL:** <https://forum.kirupa.com/t/security-in-php/67506>\
**Category:** Uncategorized\
**Created:** [October 16, 2004, 10:27pm UTC](https://forum.kirupa.com/t/security-in-php/67506 "2004-10-16T22:27:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samba\_7](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@samba\_7](https://forum.kirupa.com/u/samba_7)\
**Post date:** [October 16, 2004, 10:27pm UTC](https://forum.kirupa.com/t/security-in-php/67506/1 "2004-10-16T22:27:35Z")

</div>

filename: processLogin.php  
code line: mysql\_connect(“localhost”, “username”, “password”);

My question is about how secure this line of coding is in the php file?

I understand that php is processed on the server-side of things. My question is… when I replace username and password with my login details, how secure is this information ? Can anybody view this information/download the php file ??? and if there is a more secure method, please enlighten me.

Thank you  
Sam.
