Now is the time to run the scripts and see the outcome. It is best to use two separate terminal windows so that you can observe the result of the operation on both client and server side.
To start your PHP service, you need to run it through the Python wrapper that you wrote. To do this, run the following command:
$ python runserver.py Starting server on port 8080...
If you see a message like this and no other error, it means that your PHP service is listening on the port 8080
on your computer. In this window, you will see information about all the incoming connections and their results.
Now, let's try to call our service with Python client script. To do this, run the following command:
$ python client.py
If everything happened as expected, you will see some output. It will look similar to this:
logged current time to logfile (not waiting for response) 70x7=490 current size of logfile is: 760 Bytes Received following error: error code: 1 error desc: Can't get size information...