Xamp/wamp alt. for mac? |
Xamp/wamp alt. for mac? |
![]()
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 ![]() |
I have a mac now and im looking for something that will allow me to test website that use php includes without outting them ive on my server. Whats a free program that can do this? Is there something at http://www.apple.com/downloads/? And I dont get that site. How can I just view all the free downloads? hehe. thanks.
Edit: I just saw that php and apache are actually pre installed on the mac. Who knows how to enable it? I was hoping there was a way to do it, not in the terminal but it looks like their isnt. |
|
|
![]() |
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 ![]() |
I mean when im working on a large site I dont want to have to go through every page and change <?php include("/includes/header.php") ?> to <?php include("../includes/header.php") ?> or whatever the case is. Unless I can find a script that goes through all the pages and replaces one thing with another.
|
|
|
![]()
Post
#3
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 ![]() |
I mean when im working on a large site I dont want to have to go through every page and change <?php include("/includes/header.php") ?> to <?php include("../includes/header.php") ?> or whatever the case is. Right, I know... But if you're serving under localhost/~joseph, /includes/... isn't going to work anyway, it'd have to change to /~joseph/includes. Unless I can find a script that goes through all the pages and replaces one thing with another. You can. It's called "awk" or "sed", and it comes with your Mac. |
|
|
![]() ![]() |