• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

php help needed

Mexicorn

Limp Gawd
Joined
Jul 11, 2002
Messages
285
so i'm trying to build an experiment database where I work on a machien that's going to be a dedicated server solely for this purpose. My problem is, i'm getting tired of sshing into the machine each day and having 20+ emacs windows open trying to organize all this code. Is there some sort of IDE I could use which could open remote files, edit them, and immediately upload them whenever I save? Also, what would be the best website for quick answers and descriptions to common php questions (i.e. right now i'm looking for a simple way to display the contects of a directory in a dropdown menu...)? I've just started getting into php and mysql, so I need as much help as I can get, and googling has been iffy in finding the exact info I need. Any help would be appreciated.

****EDIT****
Maybe someone can help me with a more specific problem i'm tackling in php right now..
I have a text file forematted in fortran90 namelist format, which looks something like this:
&sect1
var1=int
var2='string'
var3=bool
/

&sect2
var1=...
/
etc. I want to try parsing the file so that each &.../ section can have it's own object named whatever is after the &, containing all the variables listed. The problem is, the file can have different amounts of strings in any order, so I can't assume any static form. Is there a way I can set up a templated class or hashtable to dynamically make variable and set them to bools/ints/strings accordingly? I have a working version of this implimentation that i can snag some tokenizer ideas from, but it's in IDL, so it doesn't play too nice with web access. Anyone know what kinda path I can take on this?
 
Use kate in kde. You can use fish://username@machine/path/to/file as the adress to access files over ssh. Very nice and integrated.

Edit: Screenshot.
 
thanks for the tip about kate. i'm gonna try that out.

BillLeeLee: I do have eclipse and have fiddled with the phpecilpse plugin, but i'm not sure how to get the ftp plugin working. I haven't been able to open remote files and start a project with them at all. How would I go about setting that up?
 
I have not messed around with the FTP plugin myself, only with PHPEclipse. Having read a bit more, it seems the FTP plugin is not that good.

A question though - does your server have SFTP capabilities? (Since you can SSH, I can assume it might since it's FTP over SSH).

If so, perhaps Eclipse with the SFTP syncronization plugin?

http://www.klomp.org/eclipse/org.klomp.eclipse.team.sftp/


However, HHunt's Kate recommendation is great if you use a Linux distro. Kate's good. :cool:
 
Setup rsync. Work on the files on your machine and once you get them stable and ready rsync them over to the server. You can set it up in cron to auto perform the rync say every 5 minutes or twice a day...whatever.

I've also used a subversion repository in the same way. I have a working checked out copy on my dev machine that I work on. Once I hit a milestone I commit the changes and ssh into the server and update it there.
 
HTML-Kit has great FTP support for opening and saving remote files, windows only. Rumors are it works under wine but I've never got it operational.
 
Back
Top