So my issue is: I built a simple app in PHP with AJAX and it’s working fine in both of my local machines (WAMP and LAMP). But when I send it to a web server, I got the (500 internal server error) message. Below is my AJAX script:
type: 'POST', url: BASEPATH+'/ajax/login', data: formData = new FormData(this), processData: false, contentType: false, async: false, cache: false,
FYI: BASEPATH is a var I use to work in localhost and web server. When it’s in localhost, BASEPATH = ‘apps/version’. When it’s in web server, I change it to empty (”), since my app is in the root folder.