Chmod CuteFTP

What I am trying to do is change the permission of a file 'on the fly' so a PHP script can save a modified HTML page to our remote server.

Through JavaScript the CuteFTP transfer engine can be controlled.

Anyone have any experience doing this or ideas how to begin?

Thanks,
Roger
rwhubbard996Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ZvonkoSystems architectCommented:
Are you sure you are talking about cuteFTP and not about cuteHTML?
When you look in this file there is nowhere the word JavaScript:
http://help.globalscape.com/help/guides/CuteFTP_Pro7_User_Guide.pdf

ZvonkoSystems architectCommented:
And that manual is an example how to do chmod on remote FTP server:

Set MySite = CreateObject("CuteFTPPro.TEConnection")
‘Initialize all necessary fields for MySite : host name, user, password, etc.
strMODE = "777" ‘full permissions
strFile = InputBox("Type in the file name below ", "CHMOD Dialog",
"cftppro10.log") ‘an input dialog with some default content
strvar = "SITE CHMOD " & strMODE & " " & strFile ‘concatenate the values
MySite.RemoteCommand strvar 'send the command

That example is in VBScript and will pass the chmod command trough the COM/ActiveX object on clients machine.
That example can be easyly changed to JavaScript, but be aware that does not work for web pages.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rwhubbard996Author Commented:
Sorry for the delay I got sidetracked by the 'tyranny of the immediate'.

This is what I was referring to (from the GlobalScape website):

What is the Transfer Engine?
Built on a modular design platform, CuteFTP Professional's FTP Transfer Engine (TE) is completely independent of the main application's interface. You can control the TE through an industry standard COM (Component Object Model) interface using your favorite programming or scripting language, such as Visual Basic, Perl, ASP or JavaScript.

I was hoping to use JavaScript to do chmod remotely in a script, one file at a time.  I use php to create static html pages and want to update them from a script.  I have to leave the public access open (chmod 747) to the directory to enable fwrite() to save the modified html.

I may be going about this in the wrong way, and suggestions would be appreciated.

Thanks,
Roger

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.