Execute PHP function with onclick

First, understand that you have three languages working together: PHP: It only runs by the server and responds to requests like clicking on a link (GET) or submitting a form (POST). HTML & JavaScript: It only runs in someone’s browser (excluding NodeJS). I’m assuming your file looks something like: Because PHP only responds to requests … Read more

TypeError: argument of type ‘NoneType’ is not iterable

If a function does not return anything, e.g.: it has an implicit return value of None. Thus, as your pick* methods do not return anything, e.g.: the lines that call them, e.g.: set word to None, so wordInput in getInput is None. This means that: is the equivalent of: and None is an instance of NoneType which does not provide iterator/iteration functionality, so you get that type error. The fix … Read more

Valgrind complains with “Invalid write of size 8”

This looks wrong: Should probably be: (spaces added for convenience). EDIT: Some additional explanation: When you say return_data[i]=… you are trying to write something into return_data[i]. Now, return_data is char**, so return_data[i] is char*. So you are writing a pointer into some location in memory. It looks like your pointers are 8 bytes long (which is fine), but you’ve only allocated 6 bytes: MAX_SOURCE_STRING+1. So … Read more

Access is denied on mklink

I jumped through all the hoops: Create a non-admin account (in my case, activated the guest account). As Admin, run secpol.msc and grant this account Create Symbolic Link permissions. runas /user:guest cmd to open a command window as the guest.only to get caught on the simplest problem: because I was running as guest, I didn’t have write permissions within the directory. So, As admin, … Read more