Tag Archives: php

Jaxon: Call PHP classes from JavaScript using AJAX

Posted in IT development | Tagged , , , , | Leave a comment

Raspberry Pi as a Stratum-1 NTP Server

This is something I found: http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html Essentially it requires pairing a Raspberry Pi with a NTPI Raspberry Pi GPS addon board On the software side of things you need rpi_gpio_ntp

Posted in IT development | Tagged , , , , | Leave a comment

PHP Tips

Object oriented introspection property_exists(obj,prop_name) method_exists(obj,method_name) is_a(obj,’clas_name’) or ($obj instanceof ClassName) Dynamic coding Call a method: call_user_func(array($obj,’method’,…args…) You can simply $obj->prop = value to add properties. or you can use __set and __get. See http://php.net/manual/en/language.oop5.overloading.php varargs func_get_arg(num) func_get_args() func_get_num_args()

Posted in IT development, Linux, Web | Tagged , , , | Leave a comment

Metabase

Metabase in Freecode Metabase is a DBMS-independent PHP API to access SQL databases. It supports MySQL, PostgreSQL, Oracle, Microsoft SQL server, Microsoft Access, ODBC, Interbase, Informix, MiniSQL, and SQLite. It supports nested transactions, blobs, and prepared queries. It can install … Continue reading

Posted in IT development | Tagged , , , | Leave a comment