Is it standard practice to be creating lots of separate .php files when using ajax? or is there a way to call certain functions with relative ease?
for example, for my checkusername code I have to create a separate php file that does this
xhttp.open("GET", "CheckUsername.php?q="+name, true);
and now if I was to go and create a bunch of ajax calls I will need lots of separate .php files. is there an easy way to group these up? whether it be in functions or even a folder that I can put them all in?
MyService.php/CheckUsernameetc. I'm sure there are many other solutions, however, your question is rather vague.