First thank you to anyone that can help!
I have been hosting a website with a company for a while but have decided to try and move it to one of my own computers. But I cannot get my php to show correctly.
A simple example of what works on my current web host but does not work on my home computer:
Data.php<?php $config['site_name'] = "MySite"; ?>
1.php<?php include "data.php"; print $config['site_name']; ?> <?=$config["site_name"]?> <? print $config['site_name'];?>
This code only displays ‘Mysite’ from the first “print” and does nothing for the next two.
Can anyone help? What is my problem?