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 > Applications > Seeking PHP Editor

Seeking PHP Editor
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 2005
Status: Offline
Reply With Quote
May 22, 2005, 12:52 AM
 
I am in very bad need of a FREE phpEditor that is capable of in app preview of compiled php code and debuging.

I am currently forced to use a great windows Freeware PHP Editor called PHP Designer 2005. I would like to however move to my iBook and work on it instead. Can anyone recommend some good FREE editors?

Thank you

nemo surdior est quam is qui non audiet
Registered Linux User #375052

#1 Battlefield2 Website on the Internet
     
Dedicated MacNNer
Join Date: Nov 2003
Location: Oslo, Norway
Status: Offline
Reply With Quote
May 22, 2005, 02:08 AM
 
SubEthaEdit is a good choice.
If "Free for non-commercial use" is good enough for you...

I have also heard nice words about TextWrangler.
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
May 22, 2005, 06:31 AM
 
Neither of those do "in-the-app" compiled code viewing. That said, I'd much rather check it in a browser. (I currently use TextWrangler, for the record.)
[Wevah setPostCount:[Wevah postCount] + 1];
     
Dedicated MacNNer
Join Date: Nov 2003
Location: Oslo, Norway
Status: Offline
Reply With Quote
May 22, 2005, 08:01 AM
 
SubEthaEdit have in app preview. Just press command-r
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
May 22, 2005, 08:16 AM
 
Yes, but it doesn't show PHP output.
[Wevah setPostCount:[Wevah postCount] + 1];
     
Dedicated MacNNer
Join Date: Nov 2003
Location: Oslo, Norway
Status: Offline
Reply With Quote
May 22, 2005, 09:10 AM
 
Originally Posted by Wevah
Yes, but it doesn't show PHP output.
Ooops, I didnt know that!
I use the preview mode for html and thought it support PHP as well.
     
Senior User
Join Date: Jan 2000
Location: Burlington, VT, USA
Status: Offline
Reply With Quote
May 22, 2005, 09:18 AM
 
I have bbedit set up to launch my php script in a new safari window. text wranger might be able to do that.
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
May 22, 2005, 09:50 AM
 
http://www.macupdate.com/info.php/id/8636

Seems to have PHP compilation inside the app.

You can extend almost any of the editors using scripting (however you may not find it as mac-like as you might want.)

e.g. This script will check the syntax of the front SubEthaEdit document.

[php]
-- PHP Parsing Routine
on parseMyPHP(sourcePath)
try
set compileResult to (do shell script "/usr/bin/php -l " & sourcePath)
on error someError
set compileResult to someError
end try
return compileResult
end parseMyPHP

on checkMyPHPSyntax(sourcePath)
set syntaxResult to my parseMyPHP(sourcePath)
if syntaxResult starts with "No syntax errors" then
return ""
end if
return syntaxResult
end checkMyPHPSyntax



tell application "SubEthaEdit"
if (number of windows) < 1 then
«event panSdlog» "There are no open subEthaEdit windows." given buttons:{"OK"}, «class givu»:1 -- seconds
return -- can't compile nothing!
else
set frontDoc to document of front window

if modified of frontDoc is true then
set saveReply to «event panSdlog» "There are Unsaved Changes! Do you want to Save the source? (choosing 'No' will cancel compilation.)" given buttons:{"No", "Yes"}, «class dflt»:2
if button returned of saveReply is "No" then
return
else
save frontDoc
end if
end if

try
set theSourcePath to path of frontDoc
-- display dialog "path: " & theSourcePath
on error errorString number errorNumber
«event panSdlog» "This Document has never been saved to a file- It cannot be Compiled."
return
end try

end if
end tell

set compileResult to checkMyPHPSyntax(theSourcePath)
if compileResult is equal to "" then
say "PHP Syntax Correct." -- You can comment out either of these lines.
-- display dialog "No Errors - Your source is now compiled." buttons "OK" default button 1 giving up after 10 -- You can comment out either of these lines.
else
tell application "TextEdit"
activate
set resultsDoc to make new document at front
set the name of window 1 to "PHP Syntax Check results:"
set the text of resultsDoc to compileResult -- Spit out the compilation error
end tell
end if
[/php]


The best solution would probably be xcode - you can customise that hugely and there will definitely be people who have done the same thing and published their notes.
(Last edited by Diggory Laycock; May 22, 2005 at 09:58 AM. )
     
waTR  (op)
Fresh-Faced Recruit
Join Date: Apr 2005
Status: Offline
Reply With Quote
May 22, 2005, 03:06 PM
 
I decided to go with Taco HTML Editor and am looking at bluefish which has MAC/PC/*nix versions...

nemo surdior est quam is qui non audiet
Registered Linux User #375052

#1 Battlefield2 Website on the Internet
     
   
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:42 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2