- Joined
- Jan 24, 2008
- Messages
- 888 (0.15/day)
System Name | Meshify C Ryzen 2019 |
---|---|
Processor | AMD Ryzen 3900X |
Motherboard | X470 AORUS ULTRA GAMING |
Cooling | AMD Wraith Prism LED Cooler |
Memory | 32GB DDR4 ( F4-3200C16D-32GTZKW, 16-16-16-36 @ 3200Mhz ) |
Video Card(s) | AMD Radeon RX6800 ( 2400Mhz/2150Mhz ) |
Storage | Samsung Evo 960 |
Display(s) | Pixio PX275h |
Case | Fractal Design Meshify C – Dark TG |
Audio Device(s) | Sennheiser GSP 300 ( Headset ) |
Power Supply | Seasonic FOCUS Plus Series 650W |
Mouse | Logitech G502 |
Keyboard | Logitech G 15 |
Software | Windows 10 Pro 64bit |
I am working on a backup script. It works pretty simpel.
You place Backup.php in the folder you want to backup.
You run Backup.php in your webbrowser.
The script starts zipping all the content of the folder and then a download-popup will allow you to download the entire folder-content in a .zip file.
The following code generates the text you see in your browser and starts the download once the backup is completed:
This is what happens at this time:
- Text gets generated
- Page scrolls down to bottem
- Download begins
This is what I want to happen:
- Text gets generated
- Page scrolls down automaticly while text is being generated
- Download begins
The person who helps me will be mentioned in the credits and offcourse I will share the script with you guys once it has all the features I want it to have.
I am currently trying to do it with javascript...
You place Backup.php in the folder you want to backup.
You run Backup.php in your webbrowser.
The script starts zipping all the content of the folder and then a download-popup will allow you to download the entire folder-content in a .zip file.
The following code generates the text you see in your browser and starts the download once the backup is completed:
Code:
foreach ($filenames as $filename) {
echo "Adding " . $filename . "<br/>";
$zip->addFile($filename,$filename);
}
echo "Files: " . $zip->numFiles . "\n";
echo "Status:" . $zip->status . "\n";
$zip->close();
echo "<meta http-equiv='refresh' content='0;url=Backup.zip'>";
This is what happens at this time:
- Text gets generated
- Page scrolls down to bottem
- Download begins
This is what I want to happen:
- Text gets generated
- Page scrolls down automaticly while text is being generated
- Download begins
The person who helps me will be mentioned in the credits and offcourse I will share the script with you guys once it has all the features I want it to have.
I am currently trying to do it with javascript...
Last edited: