OS X - Apps and Games Discussion of applications and games available for Mac OS X.

MAMP Help


Post Reply New Thread Subscribe

 
Thread Tools
Liam

 
Liam's Avatar
 
Member Since: Aug 15, 2006
Location: Abu Dhabi, United Arab Emirates
Posts: 483
Liam has a spectacular aura about

Liam is offline
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
QUOTE Thanks
Del

 
Member Since: Dec 24, 2006
Location: N. Ireland
Posts: 900
Del has a spectacular aura about
Mac Specs: Mac Pro 2xQuad core 2.8GHZ

Del is offline
Quote:
Originally Posted by Liam View Post
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'); ?>
that should work, but heres what i do

Code:
<?php
        @include_once("includes/rhlogos.html");
      ?>
Quote:
Originally Posted by Liam View Post
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
havent reinstalled mamp since i upgraded to leopard but this should work

http://localhost/foldername/index.php
QUOTE Thanks
Liam

 
Liam's Avatar
 
Member Since: Aug 15, 2006
Location: Abu Dhabi, United Arab Emirates
Posts: 483
Liam has a spectacular aura about

Liam is offline
Hi Del,

Thanks for the reply - Unfortunately I still cant get the includes displaying, and still can't get the site working in Safari.

Any ideas?

Cheers
Liam
QUOTE Thanks
Del

 
Member Since: Dec 24, 2006
Location: N. Ireland
Posts: 900
Del has a spectacular aura about
Mac Specs: Mac Pro 2xQuad core 2.8GHZ

Del is offline
Quote:
Originally Posted by Liam View Post
Hi Del,

Thanks for the reply - Unfortunately I still cant get the includes displaying
What does the error log say?

Quote:
Originally Posted by Liam View Post
and still can't get the site working in Safari.

Any ideas?

Cheers
Liam
You did run MAMP and start the Apache server before you tried to view the site, didnt you??
QUOTE Thanks
Liam

 
Liam's Avatar
 
Member Since: Aug 15, 2006
Location: Abu Dhabi, United Arab Emirates
Posts: 483
Liam has a spectacular aura about

Liam is offline
I wasn't getting any errors, and yeah, I was running MAMP and starting the Apache server before viewing.

Thankfully I've managed to fix it myself via these 2 very useful links:

http://www.jangro.com/a/2007/06/19/w...erver-in-os-x/

http://www.jangro.com/a/2007/06/19/w...ith-headdress/
QUOTE Thanks
Del

 
Member Since: Dec 24, 2006
Location: N. Ireland
Posts: 900
Del has a spectacular aura about
Mac Specs: Mac Pro 2xQuad core 2.8GHZ

Del is offline
Good stuff
QUOTE Thanks

Post Reply New Thread Subscribe


« Torrents slow on XP? | music downloader for mac.. ? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Mamp & Mambo iRock Web Design and Hosting 0 07-20-2007 07:23 PM
MAMP and htaccess roggnroll Web Design and Hosting 8 01-14-2007 04:36 AM
pmadb with phpMyAdmin and MAMP? tobias Web Design and Hosting 0 06-29-2006 09:29 AM
MAMP: PHP can't catch HTTP variables komo Web Design and Hosting 4 06-05-2006 10:39 AM
PHP/mySQL difficulties on Mac OS X.... The Annoyed Man Web Design and Hosting 6 11-02-2005 01:42 PM

All times are GMT -4. The time now is 01:50 AM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?