我正在使用已使用多年的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);我没有收到任何错误消息,只是提到的结果。没有过早的休息或死亡。

最佳答案

您确定这是时间限制错误吗?
试着做 :

ini_set('display_errors','1');

首先看看是否有错误

关于php - $ videoFeed = $ yt-> getUserUploads使脚本死亡,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/17224446/

10-12 05:49