PHP文件无法在Windows计算机中执行 [英] PHP files does not execute in windows machine

查看:100
本文介绍了PHP文件无法在Windows计算机中执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac osx上用PHP创建了应用程序。在开发之后,我将其压缩并转移到Windows 7机器上。


警告:未知:无法打开流:权限在第0行的未知中被拒绝。 / p>

严重错误:未知:无法打开所需的'C:/wamp/www/app/index.php'(include_path ='.; C:\php\pear ')在第0行的未知行中


上述错误提示,该错误是由于文件权限问题引起的,是否有可能



谢谢。.

解决方案

我有这个发现,这是因为index.php文件设置了加密。



对于任何想排除它的人-右键单击在php文件中,选择属性,然后单击高级按钮,然后取消选中加密内容以保护数据复选框,然后单击确定。这对我有用,所以就把它放在那里。


i created the application in PHP on my mac osx. and after the development i zipped and transferred to the windows 7 machine. and when i tried opening it i get this error.

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required 'C:/wamp/www/app/index.php' (include_path='.;C:\php\pear') in Unknown on line 0

the above error suggest, the error is caused because of the file permission issue, is there any possible way i can fix this error in windows itself.?

thank you..

解决方案

I had this and found that it was because the index.php file was set with encryption.

For anyone that wants to rule it out - right click the php file, select 'properties' then click the 'advanced' button and uncheck the 'Encrypt contents to secure data' check box and click 'O.K'. This worked for me, so just putting it out there.

这篇关于PHP文件无法在Windows计算机中执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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