Log in

View Full Version : quick question?


sabret00the
10-17-2003, 11:35 PM
if i have a .php file which includes serveral other php files, would i need to connect to the database with every include or would the once (per browser/end user page) be enough?

also is this connection opened already via the global.php or would i need to do it again?

Velocd
10-18-2003, 01:41 AM
Just require() global.php for every new .PHP file you make.

The only data-type transferred across require and include functions are constants and globals.

sabret00the
10-18-2003, 01:42 AM
thanks velocd, can't claim i understood but i think it got it working anyhoo www.ebslive.com (http://www.ebslive.com) :)

altho theirs an ugly template fault i can't be arsed to fix till morning :lol: