summaryrefslogtreecommitdiff
path: root/www/zend_init.php
diff options
context:
space:
mode:
authorroot2014-02-24 18:54:40 +0100
committerroot2014-02-24 18:54:40 +0100
commit6d0a5d7096e0aee3dcb1a41a0f6c57a38876c821 (patch)
tree04aeaeae6274332b2b755c5c2a91185eefd62955 /www/zend_init.php
parent8d0d04245732fcadb04ccdcba8244ca78f825435 (diff)
downloadrandom-6d0a5d7096e0aee3dcb1a41a0f6c57a38876c821.tar.gz
.
Diffstat (limited to 'www/zend_init.php')
-rw-r--r--www/zend_init.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/www/zend_init.php b/www/zend_init.php
new file mode 100644
index 0000000..3089906
--- /dev/null
+++ b/www/zend_init.php
@@ -0,0 +1,10 @@
+<?
+$clientLibraryPath = "../zend/library";
+$oldPath = set_include_path(get_include_path() . PATH_SEPARATOR . $clientLibraryPath);
+
+require_once 'Zend/Loader.php'; // the Zend dir must be in your include_path
+Zend_Loader::loadClass('Zend_Gdata_YouTube');
+$yt = new Zend_Gdata_YouTube();
+$yt->setMajorProtocolVersion(2);
+
+return $yt;