Archive for the ‘PHP’ Category

Setting up a local web server with PHP on MAC OS X




Mac OS X runs atop UNIX. Apache and PHP come packaged with OS X. To create a local web server, all you need to do is enable them. Starting Appache Open the Terminal app (command line) and type: $ sudo apachectl start Starting PHP In order to enable PHP you need to enable it on […]






Google Cloud in PHP




At this post I will give some examples of how to use Google APIs Client Library for PHP in order for interact with Google Cloud. Google BigQuery API client library for PHP First you need to download Google BigQuery API client library for PHP (download Google BigQuery API client library here). Open it and use […]






Google BigQuery API Client Example in PHP




Here is an example of how to use Google APIs Client Library for PHP in order for interact with Google BigQuery. First you need to download Google BigQuery API client library for PHP (download from here). Open it and use only the Google directory. Before coding, please validate that you have a Google BigQuery account […]






Insert into multiple MySQL tables with one-to-one relationship




I have been asked if there is a way to insert data into two MyISAM tables that connected by a one-to-one relationship in one MySQL query. For example: mysql> CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(255) NOT NULL default ”, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1   mysql> […]