This is my first time ever in PHP and my first time ever with Joomla. I come from a heavy non-Web C# / .Net background.
I have written a custom Joomla module that interacts with a third party WebService via nuSoap.
This all works great if I just run the .php files in my own non-Joomla PHP environment in my dev machine.
However, I if understand correctly, Joomla blocks all requests to everything except index.php
, is this correct?
How do I allow direct access to my own .php file?
this is an example of how I'm requesting it from client-side javascript using jQuery:
$.ajax({
url: 'MyFile.php',
type: 'POST',
data: { ... },
success: function(data, status) {
....
where MyFile.php is currently located physically at /htdocs/modules/mod_mymodule/MyFile.php
I know that allowing direct requests to this file might present a security risk, however I need to get this running ASAP and I'll take care of security concerns at a later moment.
url: '/modules/mod_mymodule/MyFile.php',
– TryHarder Oct 19 '14 at 3:23