Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm doing a PHP web project and do a lot of saving to check that the code I'm writing hosts properly on our target environment.

I do a lot of saving and thus, when I save I wish it would just automatically FTP the files up to the server so I could just hit refresh on the page I want.

Is there a configuration of Filezilla or a Portable App version of a program that can do this (I don't have admin. rights on the computer I'm working on to install stuff.)?

share|improve this question
1  
If you are using Windows, you can open the FTP server as a network share and edit the files directly on the server. –  Nathan Osman Sep 26 '11 at 20:33
add comment

2 Answers

Local PHP - on a stick

Install a portable PHP + MySQL environment on a USB stick you plug in to your development computer. E.g Portable WampServer. You can then test each update locally. You only need to FTP to your server when you have finished testing all the changed files in your project.

share|improve this answer
    
+1 - Except I'd suggest going with XAMPP instead of WampServer. –  Nathan Osman Sep 26 '11 at 20:35
    
@GeorgeEdison: Ahh yes, I didn't know about XAMPP USB Lite. –  RedGrittyBrick Sep 26 '11 at 20:39
    
I did that originally, but there were 2 issues with that: 1) I had to continually re-write the file paths for includes due to Windows vs Unix (backslashes into forward slashes) 2) The current version of XAMPP doesn't match the deployment environment. This was brought to my attention when I got a GD error that showed up on the deployment environment but couldn't be duplicated on XAMPP because it is newer. –  Zigu Sep 26 '11 at 21:07
    
@Zigu, 1) the Windows API (as used by Windows ports of Apache, PHP etc) will accept forward slashes - it is only the Command Prompt that doesn't. Are you certain this is a problem? 2) Version mismatch is a problem, true. –  RedGrittyBrick Sep 26 '11 at 22:00
add comment

How about writing a batchfile wrapper around putty's pscp tool? It's command-line driven and should be pretty straight forward. (Same could be done with WinSCP I imagine).

If you need to send files that are changed, you could use powershell to find them and the call pscp

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.