Website - Desktop Interaction |
Website - Desktop Interaction |
SBH |
Aug 26 2015, 12:14 PM
Post
#1
|
Member Group: Members Posts: 82 Joined: 6-February 15 Member No.: 22,158 |
Wanted to know if there's a way by which my PHP & JS scripts in cPanel File Manager can access & modify files on my desktop? Thanks.
|
CharlesEF |
Aug 26 2015, 01:37 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
No, I don't think that is possible. It would be a major security risk if it were.
|
SBH |
Aug 27 2015, 01:28 AM
Post
#3
|
Member Group: Members Posts: 82 Joined: 6-February 15 Member No.: 22,158 |
No, I don't think that is possible. It would be a major security risk if it were. Ok in which case, is there a way not to use the myriad FTP tools (FileZilla or whatever) & instead automate uploading files from the desktop to a specific path on File Manager? Alternatively, is there a way by which we can have the scripts in File Manager access files stored in Google Drive or Dropbox? Thanks. |
CharlesEF |
Aug 27 2015, 02:52 AM
Post
#4
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Ok in which case, is there a way not to use the myriad FTP tools (FileZilla or whatever) & instead automate uploading files from the desktop to a specific path on File Manager? Alternatively, is there a way by which we can have the scripts in File Manager access files stored in Google Drive or Dropbox? Thanks. I don't know anything about cPanel or File Manager but PHP scripts can access files on public folders to download them. If you are doing this on your web host server then you would need to copy them to a folder where you have write permission and then move them to their final location. Maybe not worth the trouble? |
SBH |
Aug 27 2015, 03:16 AM
Post
#5
|
Member Group: Members Posts: 82 Joined: 6-February 15 Member No.: 22,158 |
I would use FileZilla to be honest. It is pretty close to automatic uploading anyway. I mean, if you want to copy (duplicate) the file structure on your local drive to your web hosting site you would just need to select the main folders. All sub-foldes (file structure) would also be copied. If you wanted to write your own scripts to do this then you would need to worry about permissions and such. I don't know anything about cPanel or File Manager but PHP scripts can access files on public folders to download them. If you are doing this on your web host server then you would need to copy them to a folder where you have write permission and then move them to their final location. Maybe not worth the trouble? Thanks @CharlesEF. In which case, do you suggest that I check with Google Drive or Dropbox, if they'd have APIs to access their files (even if registered in my name, i.e. in my account) from another website (of mine again)? My challenge here is that I need to be able to access 1000s of files & read from them dynamically & process thereafter for the users of my websites. There's (among other things) heavy amount of computation involved. This post has been edited by SBH: Aug 27 2015, 03:17 AM |
CharlesEF |
Aug 27 2015, 03:45 AM
Post
#6
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Thanks @CharlesEF. In which case, do you suggest that I check with Google Drive or Dropbox, if they'd have APIs to access their files (even if registered in my name, i.e. in my account) from another website (of mine again)? My challenge here is that I need to be able to access 1000s of files & read from them dynamically & process thereafter for the users of my websites. There's (among other things) heavy amount of computation involved. |
SBH |
Aug 28 2015, 12:54 AM
Post
#7
|
Member Group: Members Posts: 82 Joined: 6-February 15 Member No.: 22,158 |
|
Lo-Fi Version | Time is now: 27th April 2024 - 09:11 PM |