Edit, upload file, reload page

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

ubax
Forum Newbie
Posts: 11
Joined: Wed Jun 10, 2009 10:45 am

Edit, upload file, reload page

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Edit, upload file, reload page

Post by Benjamin »

A good majority of developers have a Apache, MySQL and PHP installed locally, so they can test changes before uploading.
User avatar
iFlex
Forum Commoner
Posts: 41
Joined: Sat May 30, 2009 3:44 am

Re: Edit, upload file, reload page

Post 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?
ubax
Forum Newbie
Posts: 11
Joined: Wed Jun 10, 2009 10:45 am

Re: Edit, upload file, reload page

Post 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?
ubax
Forum Newbie
Posts: 11
Joined: Wed Jun 10, 2009 10:45 am

Re: Edit, upload file, reload page

Post by ubax »

iFlex, you said something about a PHP script for that. does it work like described :)?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Edit, upload file, reload page

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Edit, upload file, reload page

Post 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.
++
ubax
Forum Newbie
Posts: 11
Joined: Wed Jun 10, 2009 10:45 am

Re: Edit, upload file, reload page

Post 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)]
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Edit, upload file, reload page

Post 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.
ubax
Forum Newbie
Posts: 11
Joined: Wed Jun 10, 2009 10:45 am

Re: Edit, upload file, reload page

Post by ubax »

i meant editor wordwrap, like when the line gets too long, it starts again from the second line.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Edit, upload file, reload page

Post by onion2k »

Oh right. Do you need that? You shouldn't be writing huge long lines of code...
ubax
Forum Newbie
Posts: 11
Joined: Wed Jun 10, 2009 10:45 am

Re: Edit, upload file, reload page

Post by ubax »

can anyone help me solve the original problem?
User avatar
iFlex
Forum Commoner
Posts: 41
Joined: Sat May 30, 2009 3:44 am

Re: Edit, upload file, reload page

Post 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?
ubax
Forum Newbie
Posts: 11
Joined: Wed Jun 10, 2009 10:45 am

Re: Edit, upload file, reload page

Post 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.
User avatar
iFlex
Forum Commoner
Posts: 41
Joined: Sat May 30, 2009 3:44 am

Re: Edit, upload file, reload page

Post by iFlex »

Ahhh, So like setting up a remote directory?
Post Reply