我正在使用一个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);我没有得到任何错误消息,除了上面提到的结果之外什么也没有得到。没有过早的突破或死亡。
发布于 2013-06-21 20:48:35
您确定这是时间限制错误吗?试着去做:
ini_set('display_errors','1');首先查看是否有错误
https://stackoverflow.com/questions/17224446
复制相似问题