PHP页面返回黑色,使用PHP和Google Docs API


PHP page returning black, Using PHP and the Google Docs API

我在这里发布关于这个脚本的消息:http://www.farinspace.com/saving-form-data-to-google-spreadsheets/我已经成功地设置了一段时间,但突然之间,它不再工作了,我不知道在哪里查找错误,因为页面返回黑色而没有错误。

这是我使用的代码,我已经将zendgdata/library放置在我的主机的public_html文件夹中,并且我在主机上有几个停放的域。

有人知道它可能是什么吗?

提前感谢。。。

<?php
// Zend library include path
set_include_path("$_SERVER[DOCUMENT_ROOT]/ZendGdata-1.12.0/library");
include_once("Google_Spreadsheet.php");
$u = "username@gmail.com";
$p = "password";
$ss = new Google_Spreadsheet($u,$p);
$ss->useSpreadsheet("filename");
$ss->useWorksheet("sheetname");
@$a= addslashes($_POST['a']);
@$b= addslashes($_POST['b']);
@$c= addslashes($_POST['c']);
@$f= addslashes($_POST['f']);
@$g= addslashes($_POST['g']);
@$h= addslashes($_POST['h']);
@$j= addslashes($_POST['j']);
$id = "z" . md5(microtime(true));
$row = array
(
    "a" => $a
    , "b" => $b
    , "c" => $c
        , "f" => $f
            , "g" => $g
                , "h" => $h
                    , "j" => $j
);
if ($ss->addRow($row));
else echo "";
$row = array
(
    "a" => $a
);
?>

不知怎么的,我的url格式不对。它解决了这个问题。