PHP on OpenShift:如何启用错误和警告? [英] PHP on OpenShift: How to enable errors and warnings?

查看:58
本文介绍了PHP on OpenShift:如何启用错误和警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的应用程序移至OpenShift,现在,为了方便其实际运行,我希望启用页内错误和警告.目前,我看到一个空白页.

I have moved my app to OpenShift and now, for convenience of getting it actually work, I'd like to enable in-page errors and warnings. Currently, I see a blank page.

如何启用错误?

在PHP中,它在php.ini

error_reporting = E_ALL
display_errors = 1

推荐答案

在IRC频道#openshift上,有人告诉我这不是当前不可配置的

On the IRC channel #openshift, I was told that this is not currently not configurable

(05:06:58 PM)pmorie:ozizka-ntb:好像是购物车提供的-我不相信您可以代替自己的

(05:06:58 PM) pmorie: ozizka-ntb: it looks like it's provided by the cart - i don't believe you can substitute your own

我需要同时使用

error_reporting(E_ALL);
ini_set('display_errors', 1);

这篇关于PHP on OpenShift:如何启用错误和警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆