RE: [PHP-DB] Include File Syntax

From: Date: Thu, 26 Apr 2001 08:17:49 +0000
Subject: RE: [PHP-DB] Include File Syntax
Groups: php.db 
Request: Send a blank email to php-db+get-8910@lists.php.net to get a copy of this message
hi kat, the include files are simply a way for repetitive code (like a connection to a db) to be inserted into your pages. the syntax for the files is the same as any php script and it is added to the page at the point that you include it. the format is include ("page_name.php"); the pages that are included are as secure as your scripts. Steve > -----Original Message----- > From: James McLaughlin [mailto:katana@montrose.net] > Sent: 26 April 2001 08:15 > To: php-db@lists.php.net > Subject: [PHP-DB] Include File Syntax > > > This is my first time programming with PHP. I have seen > include files in > the beginning of a php block and wonder is there a specific > syntax used in > these files and how secure this is vs code in my .php page? > > Can someone show me a small example of what the include file > might look like > that would contain variables for $mysql server, $username > $password and > $db_name. > > Any comments you may have about security involving files > containing these > variables and where to store them would be greatly appreciated. > > > > Thanks In Advance. > > > Kat > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.db (#8910) next »