开发者

.PHP files with .TXT includes (Code Display Error)

So I am using .php pages now to use a .txt include for the navigation.

Here is the live page I am working on : http://glustik.com/essex/index.php

It seems to display line 27 code errors, not sure how to get this include to work.

Anyone care to point me in the right directio开发者_运维问答n for this one?


Warning: include(txt) [function.include]: failed to open stream: 
No such file or directory in /home/hletf/public_html/essex/index.php on line 27

Is your problem already stated there? There is an error since include(txt) is NOT a right inclusion of a file. Create your *.txt file first and then include it. Something like include("foo.txt")


If you want files .txt to be parse as .php files you should change your apache configuration, or write your own class which will parse this file and return value that you need

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜