Fatal error: Call to undefined function: get_headers() in /var/www/html/t.php on line 5

Fatal error:  Call to undefined function:  get_headers() in /var/www/html/t.php on line 5
原因
php5以上才支持该函数
解决
vi  /etc/yum.repos.d/utterramblings.repo
输入
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
最后
yum update php -y
再看
[root@localhost html]# php -v
PHP 5.2.17 (cli) (built: Aug 31 2011 12:11:14)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies


你可能感兴趣的:(html,c,PHP,function,Zend,2010)