I want a f**king backup

no no no dont ban for swear word but i want a backup of my site


The easiest way to not get banned for profanity is to not post anything intending to swear (even partly censored words count, as that is your intent).

Infinityfree is not your personal servant, you don’t just get what you want by asking for it.

If you want a backup, just take the files yourself and put it on a flash drive.

I literally made a PHP program that gets all of the files of my website and puts them into a zip file and downloads it with the push of a button.


can u give it cuz i really need it for my other sites on other providers


Uhm, ok…

if($_POST['downloadAllFiles'] == 'true'){
                function Zip($source, $destination){
                    if (!extension_loaded('zip') || !file_exists($source)) {
                        return false;
                    $zip = new ZipArchive();
                    if (!$zip->open($destination, ZIPARCHIVE::CREATE)) {
                        return false;
                    $source = str_replace('\\', '/', realpath($source));
                    if (is_dir($source) === true){
                        $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($source), RecursiveIteratorIterator::SELF_FIRST);
                        foreach ($files as $file){
                            $file = str_replace('\\', '/', $file);
                            // Ignore "." and ".." folders
                            if( in_array(substr($file, strrpos($file, '/')+1), array('.', '..')) )
                            $file = realpath($file);
                            if (is_dir($file) === true){
                                $zip->addEmptyDir(str_replace($source . '/', '', $file . '/'));
                            else if (is_file($file) === true){
                                $zip->addFromString(str_replace($source . '/', '', $file), file_get_contents($file));
                    else if (is_file($source) === true){
                        $zip->addFromString(basename($source), file_get_contents($source));
                    return $zip->close();
                echo "<script>window.open('download.php?fileName=backupFiles.zip&filePath=backupFiles.zip');</script>";
                echo "<script>window.close();</script>";

And then in download.php…

$file_name = $_GET['fileName'];
$filePath = $_GET['filePath'];
header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: Binary");
header("Content-disposition: attachment; filename=\"".$file_name."\"");

The file crawl was taken from stackoverflow, so…
The rest was made by me tho :smiley:

i cant figure it out where do i put where can u show me an example from filemanager

How does it even work? His website is suspended due to abuse. Nothing can get back up of a suspended website.


What’s the reason of your website suspension?


k so it was

reason inc

That’s not even your site. We can’t give you a copy of an account you don’t own.

Please remember that we only allow you to have three accounts per PERSON. Creating multiple client area profiles to cheat this limit is not allowed.

In any case, if your account is suspended for abuse and you want a backup, you can just ask for it through the ticket. I see you already did and have already received a download link.


And also, why are you using your alt here?


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.