Error using require_once
| From: | enediel | Date: | Fri, 13 Dec 2002 01:20:36 +0000 |
| Subject: | Error using require_once | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128085@lists.php.net to get a copy of this message | ||
I have a php files dependencies in this order:
.../php/index php
.../php/globals/db_connection.php
.../php/globas/global_functions.php
in db_connection.php I declared a variable with the connection to a
postgreSQL
database.
on index.php, everything is fine
<?
require_once("globals/db_connection.php");
require_once("globals/global_functions.php");
?>
I can use the database connection
but having in global_functions.php:
<?
require_once("db_connection.php");
?>
when I make a call from index.php to a function defined on
global_functions.php, the called function can not use the database
connection referred before.
Thanks in advance
Enediel
Happy who can penetrate the secret causes of the things
¡Use Linux!