Re: External Files (take 2)

From: Date: Mon, 20 Sep 2004 20:34:52 +0000
Subject: Re: External Files (take 2)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-197344@lists.php.net to get a copy of this message
So i would not need to use <?PHP / ?> correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? On Mon, 20 Sep 2004 13:23:20 -0700, Daniel Kushner <kushner@gmail.com> wrote: > Hi Gary, > > Look up http://php.net/include > > It's just like "copy and pasting" the code in the external file in the > one your including it into. > > Best, > Daniel Kushner > > ______________________________________ > Director of Education > Zend Technologies Ltd. > > daniel@zend.com > http://www.zend.com > > ================================================================== > Learn PHP from the experts, sign up for Zend's > online training starting October 11th > http://www.zend.com/store/education/zend-online-training.php > > ================================================================== > > > > > On Mon, 20 Sep 2004 16:14:07 -0400, GH <garyhotko@gmail.com> wrote: > > Hi... > > > > Sorry about the last post... did not realize i hit the wrong button > > > > 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 > > > > Gary > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > >

« previous php.general (#197344) next »