Increasing Execution Time Limit in PHP

have you ever wondering how andiim3.com fetch a huge number of applications and games across the internet by using only one PHP script? Well, I will tell you the secret in next paragraph. But, first, please visit andiim3.com and download something there, or just browse the apps to know andiim3.com better.

Loading Huge APK Database in one shot

Well, the main secret of the script is one of PHP function, simplexml_load_file(). The function will fetch an XML from repo specified and extract the data to the database. Got it? if you don’t, then read the manual first!

But the problem is, I got numbers of android repos and one repo could contain hundreds even thousands of application. that’s mean 2000-4000 APKs should be fetched in one shot.

In the early version of andiim3.com, I could spend 5 to 10 minutes just to re-fetch APK database. But not anymore.

To the point, I use the set_time_limit() function to let my PHP script run more than 30 seconds. So my scripts has a chance to fetch more APK database in just one shot.  I use this function too when I have to fetch the size of the APK, so thousands of HTTP request sent by a single PHP script.

Usage: set_time_limit (3600); // this set the timout limit to one hour (3600 seconds)

Be sure to put this function on top of the script.

But, beside that, you have to adjust your browser setting too. I use Mozilla Firefox, the setting is easy. Just type “about:config” in the address bar, then search for “timeout”, you can set the value to 3600 (one hour).

Have a nice try.

Andi Setiawan

Loving husband - Caring Father - Slap bet Commissionaire (I wish) find my complete profile on: http://andisetiawan.com/about-me http://facebook.com/andiim3 - http://gplus.to/andiim3 - http://andiim3.com

Share
Published by
Andi Setiawan
Tags: php

Recent Posts

Dedicated Blog for Dobby and Luna

Dobby and Luna have been part of our lives for the past years. They have…

2 years ago

Demo Site For My Projects

In the year 2021, I've completed some paid projects. Some of them are more technical,…

2 years ago

GlassTime – Glassmorphism WordPress Theme

Based on the GlassTime Bootstrap template, here I present glassmorphism WordPress Theme free to download.This…

3 years ago

GlassTime : Glassmorphism Responsive HTML5 Template

This HTML5 template is using Glassmorphism UI design language which is now trending for 2021…

3 years ago

Daftar Desa, Kecamatan, dan Kode Pos Buleleng – Bali

KecamatanKode POSBanjar81152Buleleng81119Busungbiu81154Gerokgak81155Kubutambahan81172Sawan81171Seririt81153Sukasada81161Tejakula81173Klik pada nama kecamatan untuk melihat daftar desa masing-masing. Sumber: kodepos.andiim3.com

3 years ago

Ninja diganti ADV

Ada yang bilang "semuanya akan mati matic pada akhirnya". Bener aja, sekarang tuntutan transportasi sehari-hari…

4 years ago

This website uses cookies.