Add quick test for server functionality
Currently in order to check that your server works fine,that php is running and that it has permissions to store files, you need to go through the whole test. This can be quite time consuming if you are trying to tweak the server settings to make it work. Would it be possible to have a quick link to "test your server" which just tries to write a file to the server? Optionally, you could configure file size ( or file size AND number of files) to test how much allocated space you are allowed to write to. Finally, a "clean your test files" button would remove the test files.
There is quite a bit of danger involved in all of these statements.
A blind config test would possibly be OK, to simply test the client-server model.
However getting it to write a bunch of files, could easily be used to write gigabytes of garbage to servers (plus more) until it is full under your username and people come shout at you.
Secondly, clean your test files may be OK, but I'd rather not have it physically write a bunch of files.
good one. Then just make it write a file (perhaps with a URL to download it / view it to manually check it works ok, however it should then also check that it does not exist beforehand (e.g.: if someone had the test file on their local computer and copied it over to the server)).
Yep, I'm going to get it to do a quick unit test of the entire PHP chain.
Features be coming...
Starting in b117007, there is now a client-side testing page at php\test.html to test the server side functions.
This works for both PHP and Python servers when running
An example can be seen at http://dmtlab.bcu.ac.uk/nickjillings/waet/php/test.html
Are there any more test we need to add to this?
looks good to me. Just two minor things:
- it's a
.htmlfile inside thephpfolder, which does not look very clean - the
testword is a bit abused in file names, sotest.htmlis not very expressive. Maybe consider renaming it totest_server_capabilities.phpor something like that?