在IIS中部署index.php。

huangapple go评论80阅读模式
英文:

deploy index.php in iis

问题

  • 尝试在 IIS 中部署 index.php。
  • 预期显示网站。
  • 无法打开 index.php。
英文:

I made a small application that displays a tree of directories and their files, photos and videos. It is a single php file. I need to display that index.php file in an iis but I don't know how. I have tried to make an iis web site point to the folder where I have the php file and nothing opens.

  • try deploy index.php in iis.
  • expected shoy the web site.
  • not open index.php.

答案1

得分: 1

我按照 @ADyson 的建议启用了 display_errors,然后我能够看到代码中的错误。问题是由于PHP版本引起的解析器异常,使用 isset 来检查变量是否为Null解决了它。

英文:

I enabled display_errors as @ADyson said and I could see the errors in the code. The problem was a Parser Exception because of the PHP version, using isset to check if variables are Null fixed it.

huangapple
  • 本文由 发表于 2023年7月7日 02:57:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76631799.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定