fullpath php 不在网站上显示路径
fullpath php not displaying path on website
我正在尝试 set up .htaccess on my website (hosted by GitHub, and on a custom domain), and I can't seem to find the full path to my .htpasswd file, therefore the files aren't working. I've followed this 关于如何找到完整路径的教程,但每当我尝试打开 .php 脚本时,它要么以纯文本形式显示文件内容,或下载脚本。它实际上并没有告诉我 .htpasswd 文件的路径。
是否有另一种找到完整路径的方法,或者我做的是否正确,但是 GitHub 方面有问题...也许它不支持 PHP 脚本?
如果有帮助,我很乐意为 php 文件以及 .htaccess 和 .htpasswd 文件提供 link。
PS:尝试在 Google Chrome(最新)和 Internet Explorer(Win10 附带的)上执行此操作。 None 设法做到了。
谢谢。
Github 不会提供与普通主机相同的功能。它不会执行你的PHP。它只会渲染你的 HTML.
我正在尝试 set up .htaccess on my website (hosted by GitHub, and on a custom domain), and I can't seem to find the full path to my .htpasswd file, therefore the files aren't working. I've followed this 关于如何找到完整路径的教程,但每当我尝试打开 .php 脚本时,它要么以纯文本形式显示文件内容,或下载脚本。它实际上并没有告诉我 .htpasswd 文件的路径。
是否有另一种找到完整路径的方法,或者我做的是否正确,但是 GitHub 方面有问题...也许它不支持 PHP 脚本?
如果有帮助,我很乐意为 php 文件以及 .htaccess 和 .htpasswd 文件提供 link。
PS:尝试在 Google Chrome(最新)和 Internet Explorer(Win10 附带的)上执行此操作。 None 设法做到了。
谢谢。
Github 不会提供与普通主机相同的功能。它不会执行你的PHP。它只会渲染你的 HTML.