Yeodan Posted March 24, 2009 Share Posted March 24, 2009 Is it possible to load a code on all my pages? example: <?php echo "Hello I'm Yeodan."; ?> I want this on every page of my 500 page big website but the name changes every week to something else this may be a bad example, but it shows what I want to do Link to comment https://forums.phpfreaks.com/topic/150919-solved-loading-a-peace-of-php-code-on-a-lot-of-pages/ Share on other sites More sharing options...
lonewolf217 Posted March 24, 2009 Share Posted March 24, 2009 create a new file called daily.php daily.php: <?php echo "hello world"; ?> on all of your pages: <?php include 'daily.php'; ?> Link to comment https://forums.phpfreaks.com/topic/150919-solved-loading-a-peace-of-php-code-on-a-lot-of-pages/#findComment-792840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.