CGI; Debugging; File System Watcher;
Posted: Sat Sep 05, 2015 7:44 am
Hello,
as I understand, there is no way to debug PB code for a CGI request server side (for example using PB portable) due to the nature of binding.
So, I'd write any request to the file system and let another job handle it and write the answer back (or via network connection). But a network connection I don't want to use; I want to see what requests come in and have to log them either.
How could I observe a folder for new files, so the fastCGI exe can send back the answer to the client?
Anything possible with windows API? FindFirstChangeNotification?
Or shall PB poll the file system with Delay()? Is this o.k.? Maybe ImDisk...
Any ideas?
Thanks a lot in advance!
as I understand, there is no way to debug PB code for a CGI request server side (for example using PB portable) due to the nature of binding.
So, I'd write any request to the file system and let another job handle it and write the answer back (or via network connection). But a network connection I don't want to use; I want to see what requests come in and have to log them either.
How could I observe a folder for new files, so the fastCGI exe can send back the answer to the client?
Anything possible with windows API? FindFirstChangeNotification?
Or shall PB poll the file system with Delay()? Is this o.k.? Maybe ImDisk...
Any ideas?
Thanks a lot in advance!