Re: prob with include file

From: Date: Sat, 22 Sep 2001 02:38:16 +0000
Subject: Re: prob with include file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68249@lists.php.net to get a copy of this message
Where does admin.php live? Is it in /www/inc? If not, either move it there, or change your include_path in php.ini to be: include_path = "./:/www/inc" -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Balaji Ankem <balaji.ankem@wipro.com> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Wednesday, September 19, 2001 3:35 AM Subject: prob with include file > Hi! > > same is working on windows but on Lynux giving the following > problem.. > > Warning: Failed opening 'admin.php' for inclusion (include_path='/www/inc') > in /www/imac/authentication.php on line 46 > > ---------------------------------------------- > if ($row->user_type=='A') > { > file://close mysql connection > mysql_close($connection); > include('admin.php'); > exit; > > } > else if ($row->user_type=='S') > { > file://close mysql connection > mysql_close($connection); > include('super.php'); > exit; > } > else if ($row->user_type=='O') > { > file://close mysql connection > mysql_close($connection); > include('ordinary.php'); > exit; > > } > > ----------------------------------------- > > And i tried this also include('./admin.php'); > > ------------------------------ > > Thanks in advance > > Regards > -Balaji > > > >

« previous php.general (#68249) next »