Description
The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server.
Beta
This library is in Beta. We’re comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the
代码:
<?php
backup_tables('localhost','root','root','mysql');
/* backup the db OR just a table */
function backup_tables($host,$user,$pass,$name,$tables = '*')
{
$link = mysql_connect($host,$user,$pass);
mysql_select_db($name,$link);
$return = "-- n";
$return .= '-- MySQL DATABASE DUMPER. Copyright GLS Studio ' . "n";
$return .= "-- nn";… Read More
当发生错误 TypeError: $(…).on is not a function 时,当不存在javascript类冲突的前提下,考虑是否是因为jquery版本过低!
参考:
http://stackoverflow.com/questions/15670352/typeerror-on-is-not-a-function
http://stackoverflow.com/questions/18958775/typeerror-jquery-on-is-not-a-function… Read More
HTML5的video和audio标签是用来在网页中加入视频和音频的标签,在支持html5的浏览器中不需要预先加载Adobe Flash浏览器插件就能轻松快速的播放视频和音频文件。而html5media.js可以在不支持html5的浏览器上使video和audio标签生效。
How to enable <video> and <audio> tags in all major browsers
To make HTML5 video and audio tags work in all major browsers, simply add the following line of code somewhere in the <he… Read More
Here is a little something to use on template/catalog/product/view.phtml page. I got few inquiries on how to get the “in_stock” status of a product. Here is a working sample code that shows different messages when and if the product is in stock or out of stock.
<?php // Check to see if the item is in