PDA

View Full Version : Saving PHP Web-Pages: Anyone Know ?



Claverhouse
26 Jul 2005, 11:31 PM
Whilst saving pages htm/html is simple, my default being to save it complete --- despite the annoyance of creating '_files' directories/folders [ which AFAIK despite numerous requests to computer techie fora for advice, cannot be properly marked as separate to regular folders in Windows Explorer... ] --- when you are offered the options such as .php .asp .shtml .cgi etc., what is the best choice ? So far I've opted for complete html each time, but would saving in one of the other options be optimal ? Are they meant to save everything complete in themselves... ? I've tried experimenting slightly, but sometimes I haven't even been able to open an .asp file depending on browser; and in any case I'd like to know properly...

For some reason some pages ( and files ) are nominally meant not to be saved [ nominally, since you generally can get them if you really want ], are these suffixes related to stopping people from saving the pages ?

Sorry if these are really stupid questions.



Claverhouse :ph34r:

garak
26 Jul 2005, 11:35 PM
.php .asp .shtml etc only matter to the server. Once it gets to your browser it's all html and just for simplicity you might as well save them all as .html.


[ which AFAIK despite numerous requests to computer techie fora for advice, cannot be properly marked as separate to regular folders in Windows Explorer... ]

For some reason some pages ( and files ) are nominally meant not to be saved [ nominally, since you generally can get them if you really want ], are these suffixes related to stopping people from saving the pages ?
Not sure what you mean by either of these.

Claverhouse
27 Jul 2005, 01:05 AM
I thought it would be you...!

1. When viewing Windows Explorer, you can't give a different icon to the 'file folders' (_files) which are merely part of the html page so that it's instantly obvious it's not a windows folder containing documents. Under Folder Options>File Types, I've tried giving different icons for Folders and Folder Files, but they just end up as the default Folder icon. Not the hideous yellow icon Windows prefers, but the one I've given Folders.

http://www.intpcentral.com/uploads/Stahlhelm_3.jpg

2. Some people put instructions in their code to stop specific pages being saved. Sometimes nothing happens when you try to save: sometimes you get a pop-up message saying you can't save this page. Pointless, because Firefox has an extension 'Defeat Right Click'; or you can use a website copier or a download manager to download the url or mp3.file etc.. If you really wanted to, that is. I didn't know if forms like .asp or cgi were related to these attempts to stop the page being saved.

Anyway, thanks awfully.


Claverhouse :ph34r:

garak
27 Jul 2005, 01:16 AM
1. _files is just a regular folder containing files. Nothing special about it.