can be downloaded the whole pulbic_html file from the ftp by a php script ?
#2
(2021-02-21, 05:18 AM)PARADOXP Wrote: hello everyone i want to know is this possible to download all the files and folders from ftp manager by a script ?

i mean let there is script file named "download.php" and upload it to my rooth public_html 

and in a browser if i put the url

www.website.com/download.php

the whole files or folder will be downloaded...

i am saying this because i have done this thing a long before ago...

but i lost that script and now I can't found it... ?

alternatively i have a script .php file that it will be helpful for unzip a zip file in a directory...

you just have to upload the unzip.php file in the directory where the zip file is situated and...

let the zip file named mybb.zip is in director named public_html/forum/image/mybb.zip

you put the url in your browser www.website.com/forum/image/unzip.php

and a window will be opened with selection of zip files that you want to unzip.

choose mybb.zip and submit it will be unzippes with fraction of a second. here is the file in attachment.

the main thing is i know it is possible to download all the folders from ftp via a script but i don't have that script...

can anyone give me that or make that please...

my ftp server is very down due to of my bad hosting server or they do not responding my ask...

so i want download the folders via a script and want a new hosting in a2hosting.

please help me someone...


you could say use wget or curl via terminal or write a related script to do something like this as such but why? when you could simply go into you cpanel and say simply do home directory backup and a full directory back up, dbs backups and download those respective files directly in cpanel/browser (normal way of do a site backup and move) and upon completion of such then restore said backups on new host or if not desired then simply extract the backup files on you desktop and there you already have everything you once desired to remotely grab via wget or curl? I say this because you already stated you have some issues with ftp services and your current host so why even involve ftp when you can simply do the cpanel backup route? Just saying that your aim to accomplish this the way you are hoping seems to be making more work for yourself than is needed, just saying...
Reply


Messages In This Thread
RE: can be downloaded the whole pulbic_html file from the ftp by a php script ? - by censor_deeznutz - 2021-02-22, 09:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)