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
对于花大量时间在Linux屏幕前的系统管理员和Linux爱好者来说,网络/本地电台上的音乐可以极大提高生产力,你们知道吗?不管你们相信与 否,,在工作环境中有适当的声音,如音乐或者闲聊声包围,都可以提高我们的创造力。如果你喜欢在音乐环境中工作,这个教程也许会对你有用。我将会向你展示如何在命令行中收听潘多拉(Pandora)在线电台(LCTT译注:Pandora Internet Radio是一个仅为美国、澳大利亚和新西兰提供自动音乐推荐的系统。详细介绍Prandoea电台)
正如你已经知道的,Pandora是最有名的在线电台服务之一,它包含无数的不同种类的免费音乐流,同时它还有一个强大的音… Read More
Find the local.xml in local \magentoappetclocal.xml
<pre class="brush:xml">
<config>
…
<db>
<table_prefix><![CDATA></table_prefix>
</db>
<default_setup>
<connection>
<host><![CDATA[localhost]]></host>
<username><![CDATA[bobjaneg_use… Read More