我正在使用已经工作多年的yt-getuseruploads-script,但突然间它在没有错误消息的情况下中止。它就像这样开始
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
ignore_user_abort(true);
function anmelden_yt($name,$passwort)
{
$yt_source = 'known';
$yt_api_key = 'key';
$yt = null;
$authenticationURL= 'https://www.google.com/accounts/ClientLogin';
$httpClient = Zend_Gdata_ClientLogin::getHttpClient(
$username = $name,
$password = $passwort,
$service = 'youtube',
$client = null,
$source = $yt_source, // a short string identifying your application
$loginToken = null,
$loginCaptcha = null,
$authenticationURL);
abschnitt("Login");
return new Zend_Gdata_YouTube($httpClient, $yt_source, NULL, $yt_api_key);
}
require_once("Zend/Gdata/ClientLogin.php");
require_once("Zend/Gdata/HttpClient.php");
require_once("Zend/Gdata/YouTube.php");
require_once("Zend/Gdata/App/MediaFileSource.php");
require_once("Zend/Gdata/App/HttpException.php");
require_once('Zend/Uri/Http.php');
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_YouTube');
Zend_Loader::loadClass('Zend_Gdata_AuthSub');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
echo "1<br>";
$yt = anmelden_yt($name,$pass);
echo "2<br>";
$videoFeed = $yt->getUserUploads('Google');
sleep(0.5);
echo "3<br>";
@ob_flush();
@flush();
?>
问题是,3永远不会被打印,输出是
1
2
所以即使是error_reporting(E_ERROR | E_WARNING | E_PARSE);我没有得到任何错误消息,除了提到的结果。没有过早的休息或死亡。
答案 0 :(得分:1)
你确定这是一个时间限制错误吗? 尝试做:
ini_set('display_errors','1');
首先看看是否有错误