页面显示class.openid.php文件内容
When I start the page (on my development environment) I see content of a php file
content of a class.openid.php on the page.
On the production site everything is ok.
Why that is happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
可能 PHP 配置中的 Short_open_tag 设置为 0,并且您的 class.openid.php 文件开头有
而不是
。
打开class.openid.php,找到文件开头的
并将其替换为
Probably, short_open_tag in PHP configuration is set to 0 and your class.openid.php has
<?
instead of<?php
in the beginning of the file.Open class.openid.php, locate
<?
at the beginning of the file and replace it with<?php
这通常意味着 PHP 解析器没有被调用。 (当然,除非正确加载其他
.php
文件。)因此,您需要检查 Web 服务器与您的开发环境,以确保正在加载 PHP 所需的内容处理程序和模块,并且将
.php
文件分配给该处理程序等。This normally means that the PHP parser isn't being invoked. (Unless of course other
.php
files are being loaded correctly.)As such, you need to check the web server with your development environment to ensure that the necessary content handler and module for PHP is being loaded and that
.php
files are assigned to that handler, etc.发生这种情况的原因有 4 个:
) 但它在服务器中被关闭
*您可以通过编辑上传的文件来找到此问题,代码很可能会出现在同一行。如果是这种情况,我当然希望您有相关文件的副本 :),否则您必须自己手动添加新行。
There are 4 reasons this might happen:
<?...?>
) but it's turned off in the server*You can find this by editing the uploaded file, the code will most likely show up on the same line. If this is the case, I sure hope you have a copy of the file in question :), or else you're have to add the new lines manually yourself.