Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How do you write your PHP?

How do you write your PHP?
Thread Tools
fromthecloud
Mac Enthusiast
Join Date: Nov 2002
Location: over yonder
Status: Offline
Reply With Quote
Oct 8, 2003, 01:34 PM
 
How do you write your PHP code?

Do you use an IDE or a PHP-specific editor? Or do you simply use a text editor?

Are there any PHP IDE's or editors out for Mac?
chown -R us:us yourbase

Dissent is not un-American.
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Oct 8, 2003, 02:20 PM
 
BBEdit all the way, baby
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
fromthecloud  (op)
Mac Enthusiast
Join Date: Nov 2002
Location: over yonder
Status: Offline
Reply With Quote
Oct 8, 2003, 04:03 PM
 
Originally posted by philzilla:
BBEdit all the way, baby
That's what I use.

I'm just curious...I've seen some IDE's out for Linux and Windows, but nothing for Mac.

Is there anything out there?
chown -R us:us yourbase

Dissent is not un-American.
     
mrwalker
Dedicated MacNNer
Join Date: May 2002
Location: UK
Status: Offline
Reply With Quote
Oct 8, 2003, 04:46 PM
 
I use a combination of SubEthaEdit, Transmit and the online PHP manual

-mrwalker
( Last edited by mrwalker; Oct 10, 2003 at 04:55 AM. )
     
ameat
Dedicated MacNNer
Join Date: Feb 2001
Location: Manhattan
Status: Offline
Reply With Quote
Oct 8, 2003, 05:26 PM
 
i believe zend makes a copy of their ide for osx...last time i checked, it was java based
     
clam2000
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Oct 9, 2003, 12:36 AM
 
The PHP I code is mostly hosted on linux boxes, so for the inital coding I use either Dreamweaver or SimpleText, and for tweaking I use nano (terminal based text editor).

--will
     
Partisan01
Dedicated MacNNer
Join Date: Sep 2003
Location: Pittsburgh, Pennsylvania
Status: Offline
Reply With Quote
Oct 15, 2003, 12:15 AM
 
Originally posted by fromthecloud:
How do you write your PHP code?

Do you use an IDE or a PHP-specific editor? Or do you simply use a text editor?

Are there any PHP IDE's or editors out for Mac?
vi, i write ALL my code in vi, works like a charm, no feature bloat, but has everything i'd need.

Nate
Apple iBook, B&W, Quadra 660, PowerMac 6100
Sun Netra T1, Ultra 1, Javastation
http://natetobik.mine.nu:81
     
Love Calm Quiet
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Oct 19, 2003, 06:46 AM
 
I've just started writing php for mysql, so I'm interested in your answers. So far I've just been using DWMX (even tho I've not been able to get the MX to work yet). Works fair in coloring the PHP code & I can FTP with a keystroke right from DW.

I would however, appreciated knowing the meaning of some of your acronyms?�?:

? "vi"....

? "IDE"...

Thanks
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Oct 19, 2003, 07:26 AM
 
Originally posted by Love Calm Quiet:
I would however, appreciated knowing the meaning of some of your acronyms?�?:

? "vi"....
open terminal, type: man vi
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
clam2000
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Oct 19, 2003, 10:23 AM
 
ide: integrated development environment

--will
     
chrisutley
Grizzled Veteran
Join Date: Mar 2003
Status: Offline
Reply With Quote
Oct 21, 2003, 06:53 AM
 
Originally posted by Partisan01:
vi, i write ALL my code in vi, works like a charm, no feature bloat, but has everything i'd need.

Nate
vi? you are a super nerd!
MacBook and iMac Core 2 Duo 24"
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Oct 21, 2003, 07:19 AM
 
Originally posted by chrisutley:
vi? you are a super nerd!
that's the #1 reason most people say they use vi
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
samthecat
Fresh-Faced Recruit
Join Date: Sep 2002
Location: Sydney, Australia
Status: Offline
Reply With Quote
Oct 21, 2003, 07:28 AM
 
just remember, no one uses emacs version six.

Vi lovers home page
     
m a d r a
Mac Elite
Join Date: Sep 2001
Location: the intarweb
Status: Offline
Reply With Quote
Oct 22, 2003, 05:36 AM
 


[gratuitously cartoon-like post to counteract partisan01's nerdiness]

BTW- yes, zend do a PHP IDE, called zend studio. you can download a trial from their site. but i wouldnae bother. it is a java app; feckin ugly, unintuitive windoze like interface and painfully s-l-o-w. imagine if the folks behind limewire made a text-editor and you'll get the picture!
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Oct 22, 2003, 05:41 AM
 
Originally posted by m a d r a:
imagine if the folks behind limewire made a text-editor and you'll get the picture!
nightmare in treacle!
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Millennium
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Oct 22, 2003, 09:03 AM
 
Currently I use Pepper. However, I am strongly considering switching, since Pepper seems to be dead for all intents and purposes. Someone purchased the source code from Hekkelman after he quit, but this new buyer has done nothing with it for about a year now.

There are three things I need in a text editor:

1) Syntax highlighting. SubEthaEdit seems to do everything I need in this department, even better than Pepper did (Pepper lacked support for CSS). It looks as though it is probably easier to extend as well, which is always a good plus.

2) Templates. SubEtha doesn't seem to do this yet, I'm afraid. Am I wrong?

3) HTML Tidy integration. Pepper does this better than any other editor I've ever seen -BBEdit has a nice plug-in but the interface is sorely lacking- and SubEtha seems to lack it entirely. Further, at least as far as I can tell, its extensibility doesn't stretch far enough to allow it to be added as a plug-in. Real shame, that.

However, the price for SubEtha is certainly a good one. It's definitely worth trying out.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
redJag
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Oct 22, 2003, 09:43 AM
 
Originally posted by m a d r a:
[pictures]
What is the killer whale in the fish bowl? MySQL type of app?
Travis Sanderson
     
m a d r a
Mac Elite
Join Date: Sep 2001
Location: the intarweb
Status: Offline
Reply With Quote
Oct 22, 2003, 09:58 AM
 
Originally posted by Millennium:
.......Syntax highlighting. SubEthaEdit seems to do everything I need in this department, even better than Pepper did (Pepper lacked support for CSS). It looks as though it is probably easier to extend as well, which is always a good plus.....
i havenae used subethaedit. just downloaded it for a quick look after seeing it mentioned on here by previous posters. it did look quite nice [esp. if you're working on a collaborative project]. one thing i did notice tho' in my brief "twiddle" was that subethanet disnae seem to be able to handle multiple languages in a single document. i opened a file containing PHP and HTML in subethaedit and it syntax-coloured the PHP fine, but just left the HTML black. bbedit syntax-colours the PHP and the HTML....

bbedit subethaedit

bbedit also syntax colours stylesheets [provided the document name ends in '.css'] and javascript [if the document ends with '.js' so it pretty much takes care of all your hand-coding needs. unfortunately it can't match subethaedit on price.
     
m a d r a
Mac Elite
Join Date: Sep 2001
Location: the intarweb
Status: Offline
Reply With Quote
Oct 22, 2003, 10:04 AM
 
Originally posted by redJag:
What is the killer whale in the fish bowl? MySQL type of app?
it's cocoa mysql. not as full featured [did someone say "nerdy"?] as phpmyadmin, but it's got a nice OSX GUI and does all i need when i'm building and twiddling with databases.
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Oct 22, 2003, 10:32 AM
 
yeah, i like the way BBEdit handles multiple languages in the same file, as you so yellowishly demonstrated. i've not found another text editor that does that, yet

Originally posted by m a d r a:
bbedit also syntax colours stylesheets [provided the document name ends in '.css'] and javascript [if the document ends with '.js' so it pretty much takes care of all your hand-coding needs.
no file extension required, sir. you just select the language from the pull down menu (third button from the left)

i guess yer havenae noticed that though
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
madra
Fresh-Faced Recruit
Join Date: Dec 2001
Location: ireland
Status: Offline
Reply With Quote
Oct 22, 2003, 03:13 PM
 
Originally posted by philzilla:
....... you just select the language from the pull down menu (third button from the left)

i guess yer havenae noticed that though [/B]
goddammit! how dare you get one over on me. that wasnae in the script!
*****************************

*****************************
     
madmacgames
Grizzled Veteran
Join Date: Oct 2003
Status: Offline
Reply With Quote
Oct 27, 2003, 11:01 PM
 
On a tight budget, you can use Project Builder found in the Dev tools from Apple (hey it's free and if you know PHP it works wonderful).
     
york28
Senior User
Join Date: Mar 2002
Location: Chicago, IL
Status: Offline
Reply With Quote
Oct 29, 2003, 11:32 AM
 
SubEthaEdit does support multiple languages in a single file, but you need to download some new definition files. You can find some here . This one does PHP and html at the same time.
We need less Democrats and Republicans, and more people that think for themselves.

infinite expanse
     
m a d r a
Mac Elite
Join Date: Sep 2001
Location: the intarweb
Status: Offline
Reply With Quote
Oct 29, 2003, 12:04 PM
 
Originally posted by york28:
....SubEthaEdit does support multiple languages in a single file.... This one does PHP and html at the same time....
thanx. i reckon i'll stick with bbedit mysel, but subethaedit with this def file installed looks like a pretty decent 'freebie' alternative.
     
DVD Plaza
Senior User
Join Date: Oct 2002
Location: Adelaide, South Australia
Status: Offline
Reply With Quote
Oct 30, 2003, 03:43 AM
 
I've always used nothing more than a text editor - but have always wanted a really simple editor that supports syntax highlighting.

I then discovered skEdit - supports syntax hilighting and, how awesome is this, CODE HINTING for PHP (ie shows function prototypes as you type, like Visual Basic/etc). And it's only $20!!!

http://www.skti.org/skHTMLdesc.asp
     
iJed
Dedicated MacNNer
Join Date: May 2001
Location: Edinburgh, UK
Status: Offline
Reply With Quote
Oct 30, 2003, 07:23 PM
 
I use Xcode (formerly Project Builder) for all my PHP programming since its what I use for all my other programming stuff. It has nice syntax highlighting now and you can easily create a project file containing all your PHP files, images and whatever else you want.
     
cvanston
Fresh-Faced Recruit
Join Date: Jul 2003
Status: Offline
Reply With Quote
Nov 1, 2003, 11:53 PM
 
I'll add my vote for BBEdit.

Best text editor I've ever used. Couldn't live without it. The "edit in BBEdit" function of FTP apps like Interarchy makes minor site tweaks so easy. That coupled with BBEdit's speed, excellent syntax coloring, and customizability make it tops in my book.
     
si_lance
Dedicated MacNNer
Join Date: Nov 2003
Location: SoCal
Status: Offline
Reply With Quote
Nov 10, 2003, 12:02 AM
 
Originally posted by iJed:
I use Xcode (formerly Project Builder) for all my PHP programming since its what I use for all my other programming stuff. It has nice syntax highlighting now and you can easily create a project file containing all your PHP files, images and whatever else you want.
Does Xcode support ftp editting? I use Editplus when using Windoze, and that little feature is cool. (I'm pretty sure BBEdit also does this.)
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 09:27 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,