Re: External Files (take 2)
| From: | John Nichel | Date: | Mon, 20 Sep 2004 20:32:12 +0000 |
| Subject: | Re: External Files (take 2) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197343@lists.php.net to get a copy of this message | ||
GH wrote:
Hi... Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to mysql. ---------------- I was thinking of making an external file but was not sure if it should have just variables or should it have more? also, does the content of the external file need to be enclosed in <?PHP & ?>'s Thanks for your help Garyhttp://us2.php.net/include/ Yes, the php content of the external file needs to be enclosed. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com