Linux Web Development in Linux

Discussion in 'Software' started by OneSeventeen, 22 Jul 2005.

  1. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    I am switching 100% to linux on my laptop, which will be used for writing PHP scripts and online applications.

    Here's what I really want to be able to do:

    Open a .php file, edit the document with color coding and code hints.

    For example, as I type something like "mail(" have it tell me the mail() function wants string to, string subject, string message [, string additional_headers [, string additional_parameters]].

    Then, once I'm done, I want to save it, and upload it immediately.

    Meaning, I don't want to save it, open an FTP client, navigate to the source folder, navigate to the destination folder, then upload the file. That's just way too much wasted time when working with multiple files at once.

    Is there a program for linux that can do this?

    I don't care about wysiwyg editing, but I do care about spending more time navigating folders than editing files.
     
  2. Go4t

    Go4t i

    Joined:
    13 Dec 2003
    Posts:
    939
    Likes Received:
    1
    you could have the ftp mounted so you could just save it directly and for an editor you might want to check out bluefish
    or you could just use vim/gvim and feel special
     
  3. TheAnimus

    TheAnimus Banned

    Joined:
    25 Dec 2003
    Posts:
    3,214
    Likes Received:
    8
    i had a profile for vi that i used to use, didn't do completion thou.

    Make ur own web-based one with javascript, help guide that person who's going to fail his degree who posted in programming :p

    Hmm web-based with javascript tooltip completion PHP editor *shudders*. Would be handy, but makes me shudder.
     
  4. Hamish

    Hamish What's a Dremel?

    Joined:
    25 Nov 2002
    Posts:
    3,649
    Likes Received:
    4
    this + php.net search engine plugin thing for firefox
     
  5. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    I've thought of attempting a firefox plugin, but am not quite there yet in my skills as a developer.

    I already have a web application that lets me modify my pages online (haven't gotten around to having it save the files though! :p ) and it has some pretty cool features, such as a simple ajax-ish folder navigator, and the ability to open multiple files into 'tabs' on the same web page.

    But anyway, just seeing if there was anything out there. It seems somewhat similar to me, like cramming an ftp client onto SCiTE or something...
     
  6. Hamish

    Hamish What's a Dremel?

    Joined:
    25 Nov 2002
    Posts:
    3,649
    Likes Received:
    4
    i mean for the search bar on the top right, im pretty sure theres already a script for it :)
     
  7. BBurger

    BBurger What's a Dremel?

    Joined:
    7 Apr 2005
    Posts:
    155
    Likes Received:
    0
    I haven't found an editor that'll colour-code PHP, but Screem does a very nice job with HTML/CSS, and it certainly handles PHP even if it doesn't colour it. It's included in Ubuntu's repos, and it has a lot of website management/FTP features as well that I haven't explored yet.

    For FTP, you can do something very cool in Nautilus (Gnome's file manager): mount remote (FTP) connections right in your file tree.

    In Nautilus, go File --> Connect to Server, then fill in all the FTP details. The server connection will appear as a new file tree entry, and you can save the password info in your system's keyring so you don't have to enter it every time.

    Then FTPing files is as simple as select-copy-paste. I've got two website mounted this way; it's a great timesaver!

    gFTP - Ubuntu/Gnome's default FTP client - sucks rocks, as you may have discovered. I'm waiting for the Filezilla project to port their stuff to Linux... there may also be something better lurking in Ubuntu's repos...
     
  8. Go4t

    Go4t i

    Joined:
    13 Dec 2003
    Posts:
    939
    Likes Received:
    1
    BBurger can you tell Screem to do specific syntax hilighting ie: tell it to do php the same way as html?
     
  9. woodshop

    woodshop UnSeenly

    Joined:
    14 Oct 2003
    Posts:
    1,408
    Likes Received:
    8
    Quanta will handle the ftp thing no problem but you need KDE for it. I want to say it'll do tht kind of auto completion but i've never done a php function.

    It does to the code highlighting etc....

    edit: no it don't go the hints, nor does kdevelop (but it does fo C++ go figure)
     
    Last edited: 23 Jul 2005
  10. TheAnimus

    TheAnimus Banned

    Joined:
    25 Dec 2003
    Posts:
    3,214
    Likes Received:
    8
    you can mount ftp folders from the command line.
     
  11. Go4t

    Go4t i

    Joined:
    13 Dec 2003
    Posts:
    939
    Likes Received:
    1
    I've said it before but bluefish is very good, it is a lot like Macromedia Homesite which is pretty much just dreamweaver stripped down to just coding.
     
  12. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    I will be getting my laptop in tomorrow and installing linux, and so far bluefish seems to be a winner.

    Unfortunately their website is down atm, so I can't tell all of the features.

    Does it have website management stuff built-in?
    Meaning, I'd like to use a keystroke to save the file, then another keystroke to upload the file I was working on to the webserver.
     
  13. Gushy

    Gushy What's a Dremel?

    Joined:
    18 Jan 2003
    Posts:
    162
    Likes Received:
    0
    jedit for the editor or zend studio (personal edition is free).

    I tend to use jedit to write php at work, mainly cos the array of plugins are great, there is (or at least used to be) a completion one. I've converted the whole team over to it, although they all use windows.
     
  14. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    i guess the only thing I'm still having a problem with, is I want to see local files and remote files.

    I don't want to work directly on the remote files, so I'd rather not mount an ftp folder.

    I also don't want to have upload only, because this isn't the only machine I use to edit my web sites.

    Any tips? (I can't get screem or bluefish to do this.)
     
  15. Go4t

    Go4t i

    Joined:
    13 Dec 2003
    Posts:
    939
    Likes Received:
    1
    Sounds like you want dreamweaver but for linux shame it probably will never happen as I would like that too.
     
  16. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    Yeah, I guess I'm just oversimplifying dreamweaver in my mind.

    I could care less about most of the advanced features of dreamweaver, I just want something like Scite (plain text editor), but with an FTP client built in.
     
  17. Gushy

    Gushy What's a Dremel?

    Joined:
    18 Jan 2003
    Posts:
    162
    Likes Received:
    0
    if you want something dreamweaver-sh have a look at nvu.

    as for remote access to your files, have a look at jedit.org and check out the plugins. They have plugins for everything.
     
  18. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    Okay, new attempt at coding in linux:
    I dont' care about wysiwyg editing, because I only use CSS and most wysiwyg editors get it wrong anyway...

    I want to write PHP applications efficiently in linux.

    I don't care abot how I get it done, I realize I was getting too hung up in how I did it before, now I just want to get it done as efficiently as possible. If that means using gedit and mounting an FTP folder, so be it, although I'm still not a fan of working directly on the remote files, as sometimes I like to save what I have 'so far' and go back to it later without messing up my live site.

    Any tips on good web application development techniques in linux? (as far as what software to use and how to use it)
     
  19. ManStrike

    ManStrike What's a Dremel?

    Joined:
    29 Jan 2002
    Posts:
    58
    Likes Received:
    0
    what I did was to setup apache and the php module then you can dump all you files into /var/www then view them through firefox at http://127.0.0.1
     
  20. BBurger

    BBurger What's a Dremel?

    Joined:
    7 Apr 2005
    Posts:
    155
    Likes Received:
    0
    Yeah, I'm running a full Apache/MySQL/PHP server on my box too, safely tucked away behind Firestarter (firewall) so it's not "really" a webserver. I've also edited ports.conf so Apache only looks at 127.0.0.1:80

    http://localhost/ works as well as 127.0.0.1.

    For Ubuntu, see https://wiki.ubuntu.com/ApacheMySQLPHP
     
Tags:

Share This Page