Re: shorter way to write include function?

From: Date: Wed, 31 Jul 2002 13:12:32 +0000
Subject: Re: shorter way to write include function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110508@lists.php.net to get a copy of this message
if dotest.php has got the code, do this: echo eval(join('', file('dotest.php')); "Bas Jobsen" <bas@startpunt.cc> wrote in message news:02073113582400.32156@bjobsen... > Hello, > > i have > /include/dotest.php: > <? > function dotest() {echo 'test';} > ?> > > and test.php: > <? > include('/include/dotest.php'); > dotest(); > ?> > > Us there a shorter way to write out that. I mean something like > > include::dotest; > > Thanks, > > > >

« previous php.general (#110508) next »