- Joined
- Aug 15, 2006
- Messages
- 483
- Reaction score
- 13
- Points
- 18
- Location
- Abu Dhabi, United Arab Emirates
I have installed MAMP to help me test my sites that I am doing using PHP so I don’t have to keep uploading/reuploading to my FTP. It has all installed OK etc, and it is connecting to the local host and displaying my pages correctly through Firefox, however, the ‘includes’ that I have in my index page for example, do not do not display.
Does anyone know how to make it possible to display the includes as well, so it looks just like it does when I upload to my FTP?
It is only simple pieces of PHP code that I am using where I want the header/footer/navigation etc to display:
<?php include('includes/header.php'); ?>
Also, is it not possible to test in Safari using localhost? All I get is the PHP code from the file when I open in Safari.
Thanks in advance
Liam
Does anyone know how to make it possible to display the includes as well, so it looks just like it does when I upload to my FTP?
It is only simple pieces of PHP code that I am using where I want the header/footer/navigation etc to display:
<?php include('includes/header.php'); ?>
Also, is it not possible to test in Safari using localhost? All I get is the PHP code from the file when I open in Safari.
Thanks in advance
Liam