-
☆ A M B ☆
- 24,524 Posts
I think you are mistaking a URL with a path. Usually a path is the file system path, such as /home/mydomain/public_html/americasite/...
Goodness. Thank you. I added the following to get it to work:
/Applications/MAMP/htdocs/americasite/
Ok, one more issue modxapi.
I have a .php script and I dropped this same script into 2 different directories. The same exact .php file works in one directory and not the other.
The script in the following path: /Applications/MAMP/htdocs/americasite/webservice/services/getuser.php works fine
The script in the following path: /Applications/MAMP/htdocs/americasite/amfphp/services/getuser.php does not work - it creates two errors
1. Cannot send session cache limiter - headers already sent
2. Cannot modify header information - headers already sent
Here is the modxapi includes I have in the beginning of my external php script:
$base_path = ’/Applications/MAMP/htdocs/americasite/’;
include($base_path . ’modxapi.php’);
$modx = new MODxAPI();
$modx->db->connect();
$modx->getSettings();