Re: using a username and password with mail()
| From: | bbonkosk at tampabay dot rr dot com | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: using a username and password with mail() | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-26900@lists.php.net to get a copy of this message | ||
Typically, I set these up in a header file.
like 'db.inc' will have all my database connection information:
$SERVER=''
$USER=''
$PASSWORD=''
$DBNAME=''
etc...
Then include that in your PHP file. I do this for peice of mind as then I am
the *.inc non-readable in my apache httpd.conf file so no-one can just bring up
that page to read it. See the apache manual for how to do that.
HTH, but I'm sure it is one of many ways...
-Brad
> Say the server is mail.testserver.com
> my login is: twostep+testserver.com
> my password is: twostep
>
> Where would I make those declarations? In the php.ini files or in the
> actual php page? Examples would be most helpful.
>
> Thanks,
>
> Rick
>
>
>
> "Don't burn the day...away" ~ DJM
>
>
>
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>