Re: PHP and passwords
| From: | William Lovaton | Date: | Fri, 01 Mar 2002 22:57:40 +0000 |
| Subject: | Re: PHP and passwords | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86857@lists.php.net to get a copy of this message | ||
If you use just and .inc file any user with a browser can hit in the
URL: http://www.site.com/connect.inc and see what is
inside.
So, de recomendation is:
Use a .php extension: connect.inc.php
William
El jue, 28-02-2002 a las 14:16, Sam Masiello escribió:
>
> What you could do is have a script called connect.inc which has your
> pg_pconnect statement, then use the "include" directive to include your
> connect.inc on all of your subsequent PHP pages. This way you only have the
> username/password hard coded in one location so if the username/password
> were to change, you only have to change one script instead of changing many.
>
> HTH
>
> Sam Masiello
> Software Quality Assurance Engineer
> Synacor
> (716) 853-1362 X289
> smasiello@synacor.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com