PHP rewrite an included file - is this a valid script?

て烟熏妆下的殇ゞ 提交于 2019-12-06 08:33:56

You may find a solution like Memcache may be more intuitive, faster, and useful than rewriting a PHP file every time you want to update the value.

Then there's the idea of stroing it in a database, yes I know this is slow but it's persistent.

Last, rather than writing PHP to a file why not write the value itself to a shared file and just read it? This will work nicely with your locking mechanism and won't require writing 'valid' PHP to a file which just strikes me as wrong.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!