Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP interpeter or comiler or dubugger of some sort...for Mac?

DJ Craig
Guest
 
Posts: n/a
#1: Jul 17 '05
I use a web hosting service that gives me FTP access to my directory on
a Linux server. I use Mac OS X. I write my code in Dreamweaver MX
which gives me color-coding, but I get really tired of having to upload
my code by FTP using Fetch every time I test it. Dreamweaver is
suposed to have a feature for automatically loading the files onto the
server each time you hit F12 for preview in browser, but I can't get it
to connect to my server, and anyway, when I run the PHP code on my
server, there is very little debuggin info. If there is a syntax
error, it simply displays a blank page! (pathetic) and if there is a
runtime error of some kind, it gives me very minimal information about
the error.
What I am looking for is some type of PHP interpreter or debugger for
Mac OS X. Preferably with breakpoints and variable watches and stuff
like that. Coldfusion is too expensive for me, and I can't even seem
to find out if it's exactly what I'm looking for anyway. All the
information on Colfusion is really confusing. All I have figured out
so far is that it is some type of tool for creating dynamic sites.
Does anyone know of any shareware or inexpensive program that will help
me run and debug PHP locally on Mac OS X? or even linux? I can never
get downloaded programs to run in linux, so if it is a linux program,
I'll need some help with that as well.


jyuan
Guest
 
Posts: n/a
#2: Jul 17 '05

re: PHP interpeter or comiler or dubugger of some sort...for Mac?


Seems the Marc Liyanage's site is for you ...
http://www.entropy.ch/software/macosx/php/
I thought it's open source (free). Correct me if I am wrong.

Cheers!

Mick White
Guest
 
Posts: n/a
#3: Jul 17 '05

re: PHP interpeter or comiler or dubugger of some sort...for Mac?


jyuan wrote:[color=blue]
> Seems the Marc Liyanage's site is for you ...
> http://www.entropy.ch/software/macosx/php/
> I thought it's open source (free). Correct me if I am wrong.
>
> Cheers!
>[/color]


Yes it is free, but be sure to set error checking to "on". While the OP
is at Mark's site, he should download the mySQL package, too.

Mick
ppalmieri@gmail.com
Guest
 
Posts: n/a
#4: Jul 17 '05

re: PHP interpeter or comiler or dubugger of some sort...for Mac?


Hi,

I use DWMX2004 with OSX 10.3.6 and the FTP works fine, but if you are
having problems, or just want an off-line option, i recommend using
MAMP...
http://www.mamp.info/en/home/

Awsome little app that when its runnign gives you a local Apache,
MySQL, PHP install... just run the app, and save your files into the
'MAMP Root' - then bam! you have your own local web server with no
know-how.

Phil


Mick White wrote:[color=blue]
> jyuan wrote:[color=green]
> > Seems the Marc Liyanage's site is for you ...
> > http://www.entropy.ch/software/macosx/php/
> > I thought it's open source (free). Correct me if I am wrong.
> >
> > Cheers!
> >[/color]
>
>
> Yes it is free, but be sure to set error checking to "on". While the[/color]
OP[color=blue]
> is at Mark's site, he should download the mySQL package, too.
>
> Mick[/color]

jimt
Guest
 
Posts: n/a
#5: Jul 17 '05

re: PHP interpeter or comiler or dubugger of some sort...for Mac?


i have been using BBEdit set up to preview with my local server
running. works great. i then can also use BBEdit to send it to my
main site and host but i normally just use Fetch to do that.
jimt


In article <1104833778.341926.43410@z14g2000cwz.googlegroups. com>,
<ppalmieri@gmail.com> wrote:
[color=blue]
> Hi,
>
> I use DWMX2004 with OSX 10.3.6 and the FTP works fine, but if you are
> having problems, or just want an off-line option, i recommend using
> MAMP...
> http://www.mamp.info/en/home/
>
> Awsome little app that when its runnign gives you a local Apache,
> MySQL, PHP install... just run the app, and save your files into the
> 'MAMP Root' - then bam! you have your own local web server with no
> know-how.
>
> Phil
>
>
> Mick White wrote:[color=green]
> > jyuan wrote:[color=darkred]
> > > Seems the Marc Liyanage's site is for you ...
> > > http://www.entropy.ch/software/macosx/php/
> > > I thought it's open source (free). Correct me if I am wrong.
> > >
> > > Cheers!
> > >[/color]
> >
> >
> > Yes it is free, but be sure to set error checking to "on". While the[/color]
> OP[color=green]
> > is at Mark's site, he should download the mySQL package, too.
> >
> > Mick[/color]
>[/color]
TheLobster at Gmail dot Com
Guest
 
Posts: n/a
#6: Jul 17 '05

re: PHP interpeter or comiler or dubugger of some sort...for Mac?


Mac OSX is based on FreeBSD 4.4, a UNIX enviroment. You SHOULD be able
to install PHP and run your comp as a local server. I don't have a mac,
but as far as I know, OSX has a server disk that has a lot of common
servers on it. PHP may also be on that. If you need help installing PHP
from source, email me.

jimt
Guest
 
Posts: n/a
#7: Jul 17 '05

re: PHP interpeter or comiler or dubugger of some sort...for Mac?


php is on it. you just have to enable a few lines in apache.
jimt

In article <1104962011.683748.122910@z14g2000cwz.googlegroups .com>,
TheLobster at Gmail dot Com <thelobster@gmail.com> wrote:
[color=blue]
> Mac OSX is based on FreeBSD 4.4, a UNIX enviroment. You SHOULD be able
> to install PHP and run your comp as a local server. I don't have a mac,
> but as far as I know, OSX has a server disk that has a lot of common
> servers on it. PHP may also be on that. If you need help installing PHP
> from source, email me.
>[/color]
DJ Craig
Guest
 
Posts: n/a
#8: Jul 17 '05

re: PHP interpeter or comiler or dubugger of some sort...for Mac?


Thanks for the help guys!
php is on it. you just have to enable a few lines in apache.
jimt
How do you do that? I don't have apache installed...unless it comes
with OS X.

Michael Vilain
Guest
 
Posts: n/a
#9: Jul 17 '05

re: PHP interpeter or comiler or dubugger of some sort...for Mac?


In article <1106184183.994599.170240@z14g2000cwz.googlegroups .com>,
"DJ Craig" <spit@djtricities.com> wrote:
[color=blue]
> Thanks for the help guys!
> php is on it. you just have to enable a few lines in apache.
> jimt
> How do you do that? I don't have apache installed...unless it comes
> with OS X.[/color]

Just a few things first. PHP is an interpeted language and isn't really
compiled like C or FORTRAN. It's available both as a CLI (command-line
interpeter used from the Terminal.app) or as module from within Apache.
And MacOS X _does_ come with Apache albeit it's not running by default.
All you need to do is edit /etc/httpd/httpd.conf and uncomment out the
mod_php directives, create /etc/httpd/users/<USERID>.conf to configure
your site. Buy a book on Apache to learn how to do this.

You can purchase an IDE (integrated development environment) from ZEND
(http://www.zend.com/store/products/zend-studio.php) for $249. It has a
php interpeter built-in.

Or you can use BareBone's BBEdit for $179 and use it to develop pages
for your local site after you setup Apache on your system. BBEdit does
syntax color coding and will allow you to manage your site from within
the editor.

Or you can just use vi or emacs in the Terminal.app. Or gvim or xemacs
in their own windows. These editors do syntax color coding.

Most of this requires extensive reading to be able to set it up, beyond
what a simple tutorial would cover. Go to a local technical bookstore
and flip through a bunch of books to decide what suits your best. I
like the O'Reilly books (http://www.ora.com). They have php books,
books on the Macintosh from a UNIX user's perspective, and an Apache
book.

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Closed Thread