2

I'm trying to learn PHP, and it's getting annoying having to upload a file to the server every 30 seconds. Is there a way to get a browser (I use Chrome on Mac 10.6.7) to interpret a PHP file (browser plugin or external app)? Or, is there some way to "convert" the PHP to HTML, with all the "hypertext preprocessing" done?

In short, is there a way I can practice PHP without using a server, or installing a server on my computer?

Hennes
  • 65,142
tkbx
  • 185
  • 1
    I find the easiest way is to log in on your server and edit the PHP files locally. That way you do not have to upload. – Hennes Jan 08 '13 at 18:55
  • How would I do that? I've been using FTP, and it's astoundingly slow. – tkbx Jan 08 '13 at 18:57
  • FTP is ancient. Not quite the same age as horse and cariagge, but really, avoid it. 2) Teh say I do it is by SSH-ing into the server and then editing the webpage/php files locally with vim (a texteditor). Depending on your OS remete desktop or VNC are alternatives to ssh'ing to a shell).
  • – Hennes Jan 08 '13 at 18:59
  • @tkbx if you install a server on your home computer you won't have to deal with FTP or uploading at all. At that point it is just a drag and drop on the local filesystem. – Moses Jan 08 '13 at 19:31
  • @Moses I don't have root access to my machine, and I have a hosting package that I use for various things. php command will work for now. I've got a Linux install with LAMP as well, but it's being used for something else. – tkbx Jan 08 '13 at 21:11