简体   繁体   English

PHP目录结构:从Linux托管转移到Windows托管

[英]PHP Directory Structure: Shifting from Linux Hosting to Windows Hosting

I have using aa specific directory Structure for all my PHP applications ie to keep my class and config files in folder above the public_html folder. 我对所有PHP应用程序都使用了特定的目录结构,即将类和配置文件保存在public_html文件夹上方的文件夹中。 And this structure , is very well suggested by many experienced PHP programs as it increases the security of ones application. 许多经验丰富的PHP程序都很好地建议了这种结构,因为它增加了应用程序的安全性。 This is working just fine for me. 这对我来说很好。

But recently I shifted to a Windows Hosting Service just to get additional .net support for my development environment. 但是最近我转向Windows Hosting Service只是为了为我的开发环境获得其他.net支持。 Now , The problem is don't have the permission to create any folder above the httdocs folder. 现在, 问题在于没有权限在httdocs文件夹上方创建任何文件夹。 Then , how do I maintain to keep my class and config files outside the folder which is accessible from the web. 然后,如何维护将类和配置文件保存在可从Web访问的文件夹之外。

I am sure many of you have came across the same and have solved the problem before. 我敢肯定,你们中的许多人都曾经遇到过并且已经解决了这个问题。 Kindly help me figure this out. 请帮助我解决这个问题。

Trying to get PHP to work on a Windows host has never worked out very well, in my experience. 根据我的经验,尝试使PHP在Windows主机上运行尚无法很好地解决问题。 PHP seems to get implemented poorly or at least differently in Windows and that can cause some real headaches. PHP似乎在Windows中的实现不佳或至少有所不同,这可能会引起一些真正的麻烦。
I would not advise trying to do PHP in Windows, even if you have already paid for the hosting. 即使您已经为托管支付了费用,我也不建议尝试在Windows中使用PHP。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM