This might be a very basic question, but I haven’t been able to sort it out. I am trying to collect basic eye tracking data – just to see how things work. I followed the instructions here ( https://www.pcibex.net/wiki/collecting-eye-tracking-data/#menuToc-1), had a server set up, uploaded the PHP file without changing anything, checked permissions for both the PHP file and the folder including the PHP. When I run the experiment, I don’t get any files saved in the folder.
Do I need to change something in the PHP script before uploading it to the server? Or is there something else that I am missing?
There could be multiple reasons why your setup is not working as expected. The first thing you want to try is access your PHP script yourself by entering its URL in your browser. If you can’t even see the page, then the problem doesn’t come from the script’s folder-creation or file-writing operations, but from the PHP script’s execution itself.
As far as permissions are concerned, one option is to set the directory containing your PHP to 0755 (basically read+execute across the board) although there are more secure options. Here’s a detailed post about configuring things to give write permission to a PHP script: https://unix.stackexchange.com/a/174114
Feel free to send me the URL to your php script at firstname.lastname@example.org if you want me to give a look, although there won’t be much I can do on my end