Menjalankan PHP dari command line

Adakalanya script php yang kita buat membutuhkan waktu komputasi melebihi standar waktu timeout yang diberikan oleh browser yaitu selama 30 detik. Hal ini kebetulan sedang terjadi dengan Tugas Akhir yang sedang saya kerjakan, dimana komputasi yang berjalan membutuhkan waktu pemrosesan yang lama dikarenakan adanya proses rekursif yang pengkodisian berhenti tidak pasti (bisa jadi setelah 2 kali proses pengulangan, 10 kali bahkan samapi 1000 kali).

Untuk mengatasi hal tersebut, php sendiri telah membundle productnya dengan CLI (command line interface). Untuk pengguna unix dan unix-like lainya dapat menjalankanya dengan menggunakan perintah berikut :

 #!/usr/bin/php -q namafile.php 

Baca lebih lanjut

Enter the World of Gadget

There are many kinds with different types of gadget you can find everyday. Every product has different features and developed all the time. It will be difficult to follow by yourself. Find the guides you need to follow up the new products of gadget, complete with the features and its development in

You can get all the breaking news about the hottest products, in-depth gadget reviews of cameras, computers, game consoles, MP3+MP4, phones, robots+toys, Sat-Nav, Sports+fashion, TV+hi-fi and wireless home and outspoken opinions from the team of Stuff, the world’s best selling gadget magazine and reviews from the users. Find the video content, on the spot reports from hot tech happenings and also their weekly vidcast show. This website also presents you the Top 10 gadgets they had tested from over 1000s of gadget and up date it constantly. If you find any gadget you can’t understand the features and it function, just ask the stuff team from contact us page, and they will explain it to you.

Register now and get an opportunity to join the competitions to win stacks of goodies. Once you are registered you can join the forum and read or share your experiences in using a gadget. Find also the best price you can get in this website to get the best product you can afford.