Raaoul schreef:Zover ben ik nog niet!Je kunt ook zoiets doen in je config:Eerdere citaten tonen
Bjarnootjuh schreef:Ondertussen ben ik bezig met variabelen met php. Dat is echt makkelijk als je op heel veel paginas bijv. copyright hebt. Kan je in een config gewoon $copyright zetten en dat op elke pagina echo $copyright! Scheelt me weer werk[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]function[/COLOR] top[COLOR= #007700]() {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]DIT IS DE HEADER, WELKOM OP MIJN SITE[/COLOR][COLOR= #007700]; } function[/COLOR] footer[COLOR= #007700]() {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]DIT IS DE FOOTER, COPYRIGHT BJARNO[/COLOR][COLOR= #007700]; }[/COLOR] ?>
En dan in een ander bestand bv index.php[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR] top[COLOR= #007700]();[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Hallo![/COLOR][COLOR= #007700];[/COLOR] footer[COLOR= #007700]();[/COLOR] ?>




