# April 5, 2013 at 11:23 am
Say you have a manifest file like so:
In the simplest case, you can use PHP to generate this manifest like so:
echo “CACHE MANIFEST
But that probably isn’t what you want. This is why everyone is asking what it is you’re actually trying to do – it’s difficult to give a useful answer without knowing any details.# April 7, 2013 at 4:08 pm
@pranavpatil19, did you get my response to your private message?
There is no way to help you further if you don’t answer our questions about *why* you’re trying to use PHP for this task. If there is *no reason*, then my post above answers your question in its entirety. If there *is* a reason, you need to explain it.
So, **why**? What are you trying to accomplish by using PHP that you can’t do by simply writing the manifest in a text editor?# April 9, 2013 at 5:37 pm
Of course, if your php file outputs html. In the even more simple case you can rename your index.html or whatever file you have that is making use of the app cache to index.php and it works the same. Because php is a server language and app cache has nothing to do with that.
You must be logged in to reply to this topic.