PHP 评估后的 PHP file_get_contents
我知道如何使用 file_get_contents 和 fopen 等,但是当我对自己的文件之一执行此操作时,我得到了文字字符串,这意味着代码没有经过预处理!我如何在不使用 require 等的情况下从文件导入文本,因为我想将值存储到字符串中
I know how to use file_get_contents and fopen etc, but when I do it to one of my own file, I get the literal string, meaning, the code is not preprocessed! How can i import text from a file without using require etc. because I want to store the value into a string
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅手册上的示例#5 和#6。直接从那里获取:
See examples #5 and #6 on the manual. Taken straight from there: