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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to