Problems with Global Variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
liquidchild
Forum Newbie
Posts: 9
Joined: Sun Nov 03, 2002 6:25 am

Problems with Global Variables

Post by liquidchild »

I am trying to create a system.config.php file in which global variables are held such as the wenmaster e-mail so that should i need to change the e-mail i only have to do it once. I am using include_once above the class definitions however it does not seem to like it when i try to call them with the class

example:
<?php

session_start();

include_once ( "../../system/system.config.php" );

class ErrorLogging
{
...
...
...
error_log( "Error Log File $this->_filename Created", 1, 'echo $ERROR_EMAIL' );
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply