Page 1 of 1
change a page from html to php
Posted: Sun Jul 28, 2019 10:31 pm
by Lasa
If I build and upload a page, say an index.html. Then later change it to php because I added a form, save and upload...
wwb does not seem to know that index.html has been (renamed) essentially deleted and simply uploads the index.php but does not delete the index.html which does not exist in the project anymore.
So then we need to manually delete the index.html am i correct? it doesn't seem right...shouldn't it delete index.html ?
Lasa
Re: change a page from html to php
Posted: Sun Jul 28, 2019 10:56 pm
by BaconFries
So then we need to manually delete the index.html am i correct?
Yes, the program will
neverdelete any files from the server.
it doesn't seem right...shouldn't it delete index.html ?
No, as already mentioned the program will never delete
any files from the server. It is for you remove/delete any unused files.
You can remove unused files via the built-in 'Explore' option or another FTP tool.
Re: change a page from html to php
Posted: Mon Jul 29, 2019 12:01 pm
by openomsk
It would be nice if the program automatically deleted unused files. At the same time, it would be possible to mark the files that need to be protected from deletion by the program.
Re: change a page from html to php
Posted: Mon Jul 29, 2019 12:45 pm
by Pablo
That will not be possible, There is no way for the software to know which files are from previous versions of the website or that they have been created/uploaded by other software or extensions.
Simply removing all unknown files from the server would be a huge risk and could damage your website.
Re: change a page from html to php
Posted: Mon Jul 29, 2019 1:16 pm
by Lasa
Noted and understood... with that said WWB knows what it is using and where it is at all times. So it could only delete files that "it" no longer uses, that "it" uploaded.
Just food for thought.
Cheers,
Lasa
Re: change a page from html to php
Posted: Mon Jul 29, 2019 1:29 pm
by Pablo
WWB only knows which files it currently uses, it does not keep track of files that were created by older versions, third party extensions or external scripts.
Some files may be required by older pages that are still on the server (not everyone updates their complete website) or by scripts running on the server.
Again, it would be a huge risk if the software removed any unknown file from the server. I do not want to be responsible for the damage that may do to your website.
Re: change a page from html to php
Posted: Mon Jul 29, 2019 2:44 pm
by WWBman
I periodically have a clearout of obsolete files by going into the folders (via cPanel), clicking the Last Modified heading so that all 'old' files are displayed at the bottom (or top if you prefer) and deleting the ones I'm sure are no longer needed.
Even doing this you have to be certain what you are doing.
To make it a bit easier I sometimes do a full publish so that any file that hasn't today's date is a reasonable candidate for deletion.