0

Im occasionally getting this error, sometimes it pops up sometimes it doesnt: ERROR - Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0

There was no php.ini file so i created one and turn register globals off, but that didn't work. I added "php_flag register_globals 0" to the htaccess file, but that didn't work either…</p>

Im using the laravel framework.

Here is the link to the website, if you scroll through about 5 or so pages the error will occur

I have no more ideas. Any help would be greatly appreciated! Thanks.

4

1 回答 1

3

来自 PHP 文档:

This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

因此,您要么需要将 PHP 版本降级到 <=5.2,要么需要删除任何使用寄存器全局变量的代码。

没有 php.ini 文件,所以我创建了一个并关闭了注册全局变量

总是有一个 php.ini 文件。我猜你在某个地方的托管解决方案上,所以你看不到 ini 文件。您需要与您的服务器管理员交谈并让他们更改它。

于 2013-02-13T06:44:38.510 回答