eval

eval

PHP中eval函数导致HTTP 500错误的解决方法

PHPliuliangsong 发表了文章 • 0 个评论 • 4993 次浏览 • 2016-10-18 11:10 • 来自相关话题

  使用php eval函数来执行PHP代码时,常常由于提交给eval函数执行的代码不是合法的PHP代码,而导致http服务返回"HTTP/1.0 500 Internal Server Error"错误。尝试使用下面方式进行异常处理:[pre=php]try { eavl("code..."); } catch(Exception $e){}[/pre]或者:[pre=php]@eavl("code...");[/pre]后发现页面依然返回http 500错误,在网上google一下才 查看原文 »

PHP中eval函数导致HTTP 500错误的解决方法

PHPliuliangsong 发表了文章 • 0 个评论 • 4993 次浏览 • 2016-10-18 11:10 • 来自相关话题

  使用php eval函数来执行PHP代码时,常常由于提交给eval函数执行的代码不是合法的PHP代码,而导致http服务返回"HTTP/1.0 500 Internal Server Error"错误。尝试使用下面方式进行异常处理:[pre=php]try { eavl("code..."); } catch(Exception $e){}[/pre]或者:[pre=php]@eavl("code...");[/pre]后发现页面依然返回http 500错误,在网上google一下才 查看原文 »