I want the following info to appear throughout the site, where I put some code: SiteName: Bob's Computer Shop SiteOwner: BoB Smith URL: www.example.com Sample paragraph: ------------- <SiteName> is owned by <SiteOwner>. We are here to help <SiteURL> customers. -------------- Thank you in advance, Drew
I'm assuming from the thread title that you want to read the information from a config file. First, create the config file as shown here. For this example, save the file with the name siteinfo.php <?php exit;?> SiteName = "Bob's Computer Shop" SiteOwner = "Bob Smith" SiteURL = "http://www.example.com" PHP: Now load the config file data: $info = parse_ini_file('siteinfo.php'); PHP: Lastly, display the data in your html code: <?=$info['SiteName']?> is owned by <?=$info['SiteOwner']?>. We are here to help <?=$info['SiteURL']?> customers. PHP: Depending on how you're generating the page, it might be easier to simply output the entire above line in php: <?php echo $info['SiteName'], ' is owned by ', $info['SiteOwner'], '. We are here to help ', $info['SiteURL'], ' customers.'; ?> PHP: