Page 1 of 2
Edit, upload file, reload page
Posted: Wed Jun 10, 2009 10:53 am
by ubax
the 1st and the 3rd are something that you have to do anyway.
the uploading part is what i am having problems with. i mean, it's a repetitive task. requires many clicks, depending on the FTP program you use.
i use SmartFTP which supports File monitoring - when a file changes, it is automatically uploaded to the server. But that's not very advanced. You have to add all the files manually (yea you can select 10 at once, but i'm talking 'bout subfolders) to the Queue and set them up so that they are monitored. It's a lot better than doing a manual upload each time you change a file, but it could be better. a "Folder monitor". every time something changes in the monitored folder, the change is reflected on the remove server too - that's what i am looking for.
has anyone found a way to achieve this? SmartFTP will implement is in the future, but the meaning of future is not defined. maybe in a few weeks or maybe years.
Re: Edit, upload file, reload page
Posted: Wed Jun 10, 2009 11:23 am
by Benjamin
A good majority of developers have a Apache, MySQL and PHP installed locally, so they can test changes before uploading.
Re: Edit, upload file, reload page
Posted: Wed Jun 10, 2009 11:42 am
by iFlex
Are you looking for a FTP program beacuse im working on one at the moment? Or use FileZilla.
I have a script for all of thoose things in PHP?
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 2:52 am
by ubax
forgot to mention. local editing is not an option. changes need to be uploaded immediately after being made locally.
does FileZilla offer the intelligent folder monitoring i described, which keeps the contents of the monitored folder in sync with the respective folder on the web?
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 2:53 am
by ubax
iFlex, you said something about a PHP script for that. does it work like described

?
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 4:00 am
by onion2k
ubax wrote:forgot to mention. local editing is not an option. changes need to be uploaded immediately after being made locally.
Even before they've been tested? I don't believe you. There's no reason to do that.
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 6:40 am
by Benjamin
onion2k wrote:ubax wrote:forgot to mention. local editing is not an option. changes need to be uploaded immediately after being made locally.
Even before they've been tested? I don't believe you. There's no reason to do that.
++
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 9:59 am
by ubax
the original question remains unanswered.
i discovered NetBeans, which suits the purpose perfectly. it does this "Remove folder synchronization" each time you save/create/delete a file or folder. but it is pretty much annulled by the fact that NetBeans has no word wrap! [sic(k)]
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 10:04 am
by onion2k
NetBeans might not have wordwrap() like PHP, but there's nothing to stop you writing your own version. It's a very straightforward function.
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 10:05 am
by ubax
i meant editor wordwrap, like when the line gets too long, it starts again from the second line.
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 10:09 am
by onion2k
Oh right. Do you need that? You shouldn't be writing huge long lines of code...
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 10:20 am
by ubax
can anyone help me solve the original problem?
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 12:05 pm
by iFlex
ubax wrote:iFlex, you said something about a PHP script for that. does it work like described

?
I suppose I could whip up a quick script, do you want into auto-frefresh when it detects a file been edited, uploaded etc?
Re: Edit, upload file, reload page
Posted: Thu Jun 11, 2009 1:00 pm
by ubax
iFlex. i'm talking about local file monitoring - like on my PC. when i edit the files in an IDE, i want all changes to be reflected on the remote server). basically, a synchronizer that's activated each time i save a file in the monitored folder.
if you say that's possible in PHP, i will do it myself. i don't know about PHP folder monitoring though. a recursive scan every few seconds would probably be too resource intensive, yet i'm not sure.
Re: Edit, upload file, reload page
Posted: Fri Jun 12, 2009 11:19 am
by iFlex
Ahhh, So like setting up a remote directory?