include like function

From: Date: Tue, 08 Jul 2003 08:35:10 +0000
Subject: include like function
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-154320@lists.php.net to get a copy of this message
> Hello, i need a function that gets a internal file say news.php, and follows > the urls from its copied location, > > say if i am in > /pages/ > and i need a file from > /pages/php/wow > > i put > include('php/wow/news.php') > But the news.php file needs a file in the /php/wow directory called > news.inc.php > > how can the php copy every thing accross so a error is not shown > so the > script could read > include('php/wow/news.php', point_links_to('php/wow/') > > Thank You, > > Sam George. > ktcsc.co.uk > >

« previous php.general (#154320) next »