summaryrefslogtreecommitdiff
path: root/www/zend_init.php
diff options
context:
space:
mode:
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;