ilmu-linux.com

Network & Linux opensource

 

PHP Memory Usage Information Class

 

Sometimes it’s nice to know or even very important to know, how much your PHP script is using memory. This is a simple example of a class, which can be used to collect the PHP script memory usage information and to print all information. It’s easy to reformat output, if you want to use it example on web page or command line script. Or even do another function for web pages and another for command line scripts.


Read more ...

Upload Multiple File Dengan PHP

 

Bisa Anda bayangkan bagaimana repotnya seandainya kita harus mengupload file atau dokumen yang jumlahnya cukup banyak ke web server. Kalau kita cuma mengandalkan aplikasi upload seperti yang pernah kita bahas pada tulisan sebelumnya, tentu sangat melelahkan dan juga membosankan. Mengapa demikian? Ya tentu saja, karena aplikasi tersebut hanya mampu mengirimkan satu dokumen dalam satu kali upload.


Read more ...

Hati-Hati Dengan Register Global

 

Kalau kita perhatikan, pada saat proses instalasi beberapa CMS open source (misalnya Joomla), dengan alasan keamanan disarankan untuk menonaktifkan fungsi register_global. Konfigurasi fungsi ini terletak pada file php.ini.


Read more ...

Install Memcache onto cPanel running CentOS (Compile)

 

Every time I install Memcache on cPanel I get a little bit stuck, so I wrote this quick guide in the hopes of helping myself next time and also helping other people who want the advantages of super fast caching.


Read more ...

How To Install memcached with memcache PHP Extension on CentOS 5.x

 

In this how to i will describe how to install memcached on your server with PHP Extension.  memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. My server is running CentOS 5.3 with CPanel.


Read more ...

php html from example

 

PHP HTML Form Example

Use this example as a form walkthrough. We will briefly build an HTML form, and call the form data using PHP. PHP offers several methods for achieving this goal, so feel free to substitute alternative methods as you follow along. Our example will show you a method using a single .php file, combining both PHP and HTML in one simple text file, to retrieve the data and display the results. Below is a quick review of bullets, check boxes, text fields, and input fields and using them to build a form to retrieve some personal information about our user.


Read more ...

PHP Array Function

 

Salah satu kelebihan PHP adalah pada bagian array dimana array pada PHP bersifat dinamis tanpa perlu inisialisasi awal. Selain itu array pada PHP juga memiliki banyak fungsi pendukung.
Pada ulasan kali ini hanya akan membahas beberapa fungsi array PHP yang banyak digunakan dan tergolong cukup penting.


Read more ...

Mengatasi Error dari PHP 5.2 ke 5.3

 

Ada beberapa syntax koding di PHP 5.2 di ganti di php 5.3 biasa nya akan muncul error DEPRECATED yang artinya fungsi atau command tsb sudah tidak di gunakan lagi di fungsi PHP yang terbaru.

berikut beberapa error yang terjadi


Read more ...

Web Service atau Web API

 

Nah… pada artikel ini, saya akan mencoba memaparkan cara membuat web service sederhana dengan studi kasus proses login menggunakan PHP dan MySQL.

Kalo ada Muncul Internal Server Error cek error nya di file error_log file itu ada di dalam satu direktory

 


Read more ...

Mengapa ada pesan Internal Server Error

 

Ketika mengakses halaman website Anda, tiba-tiba Anda menemukan tampilan layar putih dengan tulisan sebagai berikut:

Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@******.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


Read more ...

Deprecated function on php engine

 

Ya, lumayan lama saya meninggalkan dunia PHP, saat punya ide untuk membangun sebuah aplikasi untuk kantor dengan basis PHP dan benar saja karena jarang update info tentang PHP saya masih menggunakan fungsi-fungsi lama yang disupport oleh PHP terbaru (PHP5.x.x) dan hasilnya langsung mendapat peringatan dari PHP yang berupa Function Was Deprecated. Maksudnya adalah ada beberapa fungsi yang sudah tidak disupport/dihilangkan oleh PHP versi terbaru. Alasan kenapa PHP memberlakukan aturan seperti itu, karena memang dalam PHP terdapat banyak sekali build-in function yang saling tumpang tindih sehingga hal tersebut kurang efisien, oleh karena itu ada beberapa fungsi yang mempunyai kesamaan harus dihilangkan. Berikut beberapa fungsi yang sudah tidak didukung oleh PHP6 beserta cara pemakaiannya.


Read more ...