Affiliation:
1. Communication University of China
Abstract
This paper presents a technical implementation model for data capturing scripts in PHP to be efficient in the environment of a browser, Apache and MySQL. Traditional PHP scripts are usually run within the environment of the Apache OS and MySQL database, through a browser. This will lead to a substantial time limit when Apache runs. When the data to be captured by the PHP script is large, Apache will not be efficient enough to grab all the data and update the data into the database. In this paper, we use the shell scripting language to call PHP language in the terminal under Linux environment, and then grab the weather conditions in various cities in China, hence achieving the data capturing objectives, and update these data into the database in real time.
Publisher
Trans Tech Publications, Ltd.
Reference5 articles.
1. Liu Zhihui, Xu defend. TheWebGIS development based on Google Maps API and Network Data Capture Technology [J]. Surveying andMapping . 2009. (3) : 68-70.
2. PHP/CURL-using libcurl with PHP. http: /curl. haxx. se/libcurl/php. (2007).
3. Gao Jing, ChuanDuan. JSON data transmission efficiency research, [J]. Computer Engineering and Design . 2011. (32) : 2267-2270.
4. Ivan T. Tanev. DOM/XML-based portable genetic representation of the morphology, behavior and communication abilities of evolvable agents[J]. Artificial Life and Robotics. 2004 (1).
5. Zhang Lei. The access of Web databases based on PHP[J]. Neijiang Technology. 2008 (01).