PHP simple question

May I know what program is use to read or edit PHP files? I’d few PHP files that my friend forwarded to me but I failed to open it using Dreamweaver.

Thank you!!

if you’re using a PC you can use something like notpad, or wordpad.

If you’re using a mac, probably simple text would work.

if you’re using Linux, you could use Emacs (i think thats what its called) or Pico (command based editor) or something like that =)

and if it doesnt open in either, its probably a corrupt file or its not php… etc. =)

*Originally posted by Raydred *
if you’re using Linux, you could use Emacs (i think thats what its called) or Pico (command based editor) or something like that =)

Yes, it’s called Emacs :wink: I use vim under Linux.

You can open PHP files in any text editor. Under windows though, if it’s all cluttered up and on one line, it’s probably using Un*x style line endings(
instead of
).

If this happens, you need to use an editor that can use Un*x style line endings… Dreamweaver definitely can, but I don’t know about the rest…

*Originally posted by Raydred *
if you’re using Linux, you could use Emacs (i think thats what its called) or Pico (command based editor) or something like that
pico is unix

you can probably even use M$ word. I think it’ll open a file in both formats.