I’ve developed a login module using AJAX. One of the functionalities is username availability checking. Of course this makes use of an external PHP file, containing the line:
defined('_JEXEC') or die;
This is causing all the trouble. And this line has to be in there. As you know AJAX cant call this file, access denied..
Some people say I have to make an component, but I prefer to avoid this.
What are my options?
Make the AJAX call to your own PHP file that has the line
Then get the information you need from the other PHP file.
I use XMLRPC to call files on remote Joomla machines, and the remote PHP files all have this line, which works fine. Note the difference between
defineanddefined.