나는 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); 내가 언급 한 결과 외에 아무런 오류 메시지도 얻지 못했다. 조기 휴식이나 사망은 없습니다.
실시간 디버깅을 시도하고 함수로 이동을가 있는지. XDebug 또는 그것의 좋아하는 것. 구체적인 오류 없이는 정말 도움이되지 못합니다. 하지만 디버깅이 도움이 될 것입니다! – Sam