Archive for the 'General' Category

ByteHoard x-sendfile patch

Friday, February 6th, 2009

ByteHoard is a PHP-based web storage system, providing a web interface for users to upload, download, share and edit files, all via their browser. Includes thumbnails for images, multiple database support, skinning support, directory support and much more

But it lacks of x-sendfile support. When you use ByteHoard to serve large file and many concurrent user, i’m pretty sure your server will be out of resource immediately. So, why don’t serve those files direct to webserver, It will safe your resource.

This is a patch for ByteHoard 2.1 Epsilon.
Around line 104 on your filelink.php file, change the line :

$fileobj->readfile()

with :

for Lighttpd 1.4

header("X-LIGHTTPD-send-file: /path/to/upload-data" . $filepath);

for Lighttpd 1.5 and Apache2 with mod_xsendfile

header("X-Sendfile: /path/to/upload-data" . $filepath);

for nginx

header("X-Accel-Redirect: /path/to/upload-data" . $filepath);

BALI – LOMBOK

Friday, February 1st, 2008

24 Januari 2008

09.45 wita – Transfer in di Bandara Ngurah Rai Denpasar
10.00 wita – Start Tour Mengunjungi Tanjung Benoa
12.00 wita – Makan siang di Tanjung Benoa
14.30 wita – Mengunjungi Pura Uluwatu
17.00 wita – Mengunjungi Tanah Lot dan makan malam di Tanah Lot
19.00 wita – Check In Hotel (Wina Holiday)

25 Januari 2008

08.00 wita – Sarapan Pagi
09.00 wita – Mengunjungi Pasar Sukawati
11.00 wita – Mengunjungi Bali Classic Center
12.00 wita – Makan Siang di Bali Classic Center
14.00 wita – Mengunjungi Joger Bungy Jumping di AJ Hackett
16.00 wita – Check Out Hotel
17.00 wita – Menuju Pantai Kedonganan – Jimbaran
18.00 wita – Makan malam di pantai Kedonganan Jimbaran
20.00 wita – Menuju pelabuhan Padang Bai
21.00 wita – Tiba di pelabuhan untuk melakukan penyebrangan ke Lembar Lombok

26 Januari 2008

05.00 wita – Tiba di pelabuhan Lembar Lombok
06.00 wita – Transit Hotel dan Sarapan Pagi
08.00 wita – Ke pelabuhan Bangsal untuk menyebrang ke Gili Air
12.00 wita – Makan Siang di Local Restaurant
13.00 wita – Mengunjungi Pusat Gerabah dan Tenun
16.00 wita – Pasar Tradisional Lendang Bajur
17.00 wita – Makan malam di Pantai Senggigi
19.00 wita – Check in Hotel (Holiday Resort)

27 Januari 2008

07.00 wita – Sarapan Pagi dan Check Out Hotel
09.00 wita – Lombok City Tour (Mampir ke Mataram)
11.00 wita – Check In di Bandara Selaparang

Marhaban ya Ramadhan

Saturday, September 23rd, 2006

Mohon maaf lahir batin.. :)