Including files and functions

From: Date: Fri, 06 Sep 2002 09:18:13 +0000
Subject: Including files and functions
Groups: php.general 
Request: Send a blank email to php-general+get-115415@lists.php.net to get a copy of this message
Hello I have A LOT of files that are already made, but does now Want to make a printerfriendly version of every file, but Ran into some problems How can i solve this without have to change every READILE.HTM files ?? FILE 'DEFAULT.HTM' if (eregi ("PRINT.HTM", $PHP_SELF)) { exit; } HERE IT IS TEXT if (function_exists('write')) { call_user_func ('write'); } AND HERE THERE IS TEXT FILE 'READFILE.HTM' if(!isset($mainfile)) { include("DEFAULT.HTM"); } function innhold() { THE TEXT HERE MORE TEXT A LINK TO PRINT.HTM GOES HERE } FILE 'PRINT.HTM' $print = $HTTP_REFERER; ... HERE GOES CODES FOR BRAKING THE $print READY FOR INCLUDE include "$print"; if (function_exists('write')) { call_user_func ('write'); } Regards Bård Tommy Nilsen

« previous php.general (#115415) next »