- This topic is empty.
-
AuthorPosts
-
April 4, 2013 at 2:35 pm #43891pranavpatil19Member
I want to create offline Cache Manifest File using PHP
my file structure index,html,contact.php,about-us.php ,cssfolder,js folder
please help me
April 4, 2013 at 3:16 pm #130680CrocoDillonParticipantWhy not make the manifest file manually? Seems like a lot of effort to automate something really simple.
April 5, 2013 at 2:50 am #130700pranavpatil19Memberi am faimalier with html maifest file ..but i never used in php..can y0u help me how to implement it.if u have any demo . please give me alinks o i understand
April 5, 2013 at 2:59 am #130701pranavpatil19Memberis html5 manifest method work in php
April 5, 2013 at 3:56 am #130711kevinvanceParticipantTo be clear, you’re wanting to use PHP to generate a cache.manifest, or can you create it manually? If creating it manually is ok for your case, that’s probably the way to go, but maybe I’m not understanding the use case.
April 5, 2013 at 11:23 am #130735__ParticipantSay you have a manifest file like so:
CACHE MANIFEST
index.html
stylesheet.css
images/logo.png
scripts/main.jsIn the simplest case, you can use PHP to generate this manifest like so:
echo “CACHE MANIFEST
index.html
stylesheet.css
images/logo.png
scripts/main.js”;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 6:19 am #130900pranavpatil19Memberplease help me
April 7, 2013 at 4:08 pm #130936__Participant@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:20 am #131104pranavpatil19Memberhttp://www.w3schools.com/html/html5_app_cache.asp is this method work with php file…
April 9, 2013 at 5:33 pm #131170pranavpatil19Memberi want cache my imges css and jacascriptand my nav.php file file and i am using php language…so i want to create oofline cache using manifest file….
is html5 manifest method working in php…..
April 9, 2013 at 5:37 pm #131173CrocoDillonParticipantOf 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.
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.