Solved

New Mac - Getting started with PHP

Posted on 2011-02-17
8
334 Views
Last Modified: 2012-05-11
I have just got a new Mac and need to know how to a) get PHP working and b) what tools do I use to develop PHP?

On the PC I use NotePad++, but do Apple offer any such tools? What is the industry standard? Can XCode be used for PHP developing, or is it just for C?

I like tabbed editing.
0
Comment
Question by:numberkruncher
8 Comments
 
LVL 13

Author Comment

by:numberkruncher
ID: 34915791
is Coda any good? or is there better?
0
 
LVL 5

Expert Comment

by:JermTheWorm
ID: 34915830
Most people using apple tend to use textmate, there is some php plugins/language addons for it, but you can also look at komodo and xcode does apparently work as well.
0
 
LVL 8

Accepted Solution

by:
rationalboss earned 167 total points
ID: 34916974
0
 
LVL 13

Author Comment

by:numberkruncher
ID: 34918313
cheers guys.

I have managed to get php 5 working. but i am having trouble with MySQL. Is it installed by default? I have added phpMyAdmin and added localhost, but what would the default username and password be?
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 167 total points
ID: 34921154
MySQL is not part of the native installation.  See the notes here:
http://us3.php.net/manual/en/mysql.installation.php

A good place to start your reading about MySQL in PHP is here:
http://us3.php.net/manual/en/book.mysql.php
0
 
LVL 11

Assisted Solution

by:VanHackman
VanHackman earned 166 total points
ID: 34923559

As long as you are "getting started" I will suggest you to use one of those packages which install all that you need, with a couple of "clicks"

In this case the MAC version of XAMPP will be quite enought:

http://www.apachefriends.org/en/xampp.html


It will install Php, MySQL and Apache at once.

This kind of installation is not very personalized, but it's the best way to start.

When you got more familiar with Php, and MySQL you could try to make a custom installation of each of them.

Regarding the Tools, as long as I have heard Coda, is one of the best solutions for web development under a MAC enviroment:

http://www.panic.com/coda/

Hope this helps!.
Kind Regards,
Oxygen+ Team
0
 
LVL 5

Expert Comment

by:JermTheWorm
ID: 34923720
I +++ the xampp as it also gives you an easily installable CMS take your pick of the better ones.
0
 
LVL 13

Author Closing Comment

by:numberkruncher
ID: 34924816
Thanks guys, I managed to get MySQL working in the end.

It took me a while to get my previous projects working on their. One of the things which I found the most challenging was enabling htaccess and adding

[code]Options +FollowSymlinks[/code] at the top of my .htaccess files. I am not sure yet what this actually does, but it is all working!!

I have downloaded the trial to Coda and am somewhat impressed. It has got pretty much everything that I need all under one roof. I also downloaded Eclipse for PHP, but I am not particularly impressed with that one. XCode seems great for creating C/C++ apps and iPhone apps (which I might have a play with), but it doesn't seem to be possible to create PHP or Web Projects (unless I am missing something).

Thanks again,
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
.php tree directory? 5 56
How to use md5 hashing 3 27
Migrate Application To New Mac 5 32
How can I echo a PHP variable in AJAX function? 7 32
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now