mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-04-10 16:05:21 -04:00
a8bb0462097bd83cd87bf9048b8be879cff3cd6c
I've done some tests on a 60M flv and found that there's no difference
in memory consumption with these three approaches:
public function test() {
Kohana::close_buffers(false);
$file = "/home/bharat/basketball.flv";
if ($fd = fopen($file, "rb")) {
while (true) {
$bits = fread($fd, 65535);
if (strlen($bits) == 0) {
break;
}
print $bits;
set_time_limit(30);
}
fclose($fd);
}
Kohana_Log::add("error","test: " . print_r(array(memory_get_peak_usage(true),memory_get_peak_usage(false)),1));
}
public function test2() {
Kohana::close_buffers(false);
$file = "/home/bharat/basketball.flv";
$fd = fopen($file, "rb");
fpassthru($fd);
fclose($fd);
Kohana_Log::add("error","test2: " . print_r(array(memory_get_peak_usage(true),memory_get_peak_usage(false)),1));
}
public function test3() {
Kohana::close_buffers(false);
$file = "/home/bharat/basketball.flv";
readfile($file);
Kohana_Log::add("error","test3: " . print_r(array(memory_get_peak_usage(true),memory_get_peak_usage(false)),1));
}
Modify the panel code to expect a JSON data package to mirror what we did in gallery.dialog.js in
9538b3888d
Gallery 3.0 (code name "Santa Fe") ABOUT: Gallery 3 is a web based software product that lets you manage your photos on your own website. You must have your own website with PHP and database support in order to install and use it. With Gallery you can easily create and share albums of photos via an intuitive interface. SECURITY (& INTENDED AUDIENCE): This is the second (and hopefully final) release candidate of Gallery 3.0. We're putting it out there so that we can find out if we overlooked any small things. We expect the final version to be virtually identical. You can install it on public websites and use it freely -- we recommend it! Note: - We've contracted a professional security audit, received their results and resolved all the issues they found. - You can upgrade from beta 1, but not from alpha releases. This version is intended for broad distribution. We stand ready to support the product and help you to make the most of it. We welcome theme and module developers to play with this release and start turning out slick new designs for our happy users. Did you find a security flaw? Please email security@gallery.menalto.com with the details and we'll fix it ASAP! SUPPORTED CONFIGURATION: - Platform: Linux / Unix. - Web server: Apache 2.2 and newer. - PHP 5.2.3 and newer (PHP's safe_mode must be disabled and simplexml, filter, and json must be installed). - Database: MySQL 5 and newer. INSTALLATION VIA THE WEB: - Point your web browser at gallery3/installer/ and follow the instructions. INSTALLATION FROM THE COMMAND LINE: - php installer/index.php [-h host] [-u user] [-p pass] [-d dbname] Command line parameters: -h Database host (default: localhost) -u Database user (default: root) -p Database user password (default: ) -d Database name (default: gallery3) -x Table prefix (default: ) BUGS? Go to http://apps.sourceforge.net/trac/gallery/ click the "login" link and log in with your SourceForge username and password, then click the "new ticket" button. Mark any issues you find with the "3.0" milestone and we'll try to get 'em done for the next release. QUESTIONS, PROBLEMS: - Check out the gallery3 FAQ http://codex.gallery2.org/Gallery3:FAQ - Post to the Gallery 3 forums: http://gallery.menalto.com/forum/96 - Email gallery-devel@lists.sourceforge.net
Description
The simplest, most intuitive way to host your photos on your website.
https://galleryrevival.com
Languages
PHP
87.7%
CSS
6.4%
JavaScript
5.7%
Perl
0.1%