0

我的代码:

$fburl_arr = array();
$fburl_arr = explode( "/", "https://www.facebook.com/media/albums/?id=2243618684625465217" );
echo "<pre style='font-size:13px; background-color:yellow;'>";
print_r( "fburl_arr >>> " );
print_r( $fburl_arr );
print_r( "filename >>> " );
print_r( $filename );
echo "</pre>";

给我错误:

Notice:  Undefined variable: fburl_arr in /home/content/96/8564996/html/app/webroot/test/joomla254/modules/mod_jfbalbum/helper.php on line 44
4

2 回答 2

1

$fburl_arr已启动,因此不能成为错误的来源。

http://codepad.viper-7.com/IP0RCu#

您也不需要启动阵列,因此您可以删除

$fburl_arr = array();
于 2012-06-09T03:20:49.303 回答
0

打开 PHP.ini 并找到配置行:error_reporting。将其更改为:error_reporting = E_ALL & ~E_NOTICE错误将消失

于 2012-06-09T03:24:44.650 回答