MLM Settings

Momaw

New Member
I keep getting the following message when using the "Creating list" command:
Notice: Use of undefined constant PHP_SELF - assumed 'PHP_SELF' in /Library/WebServer/Documents/mlm/mlm.php on line 148
Error - Impossible to create the list.

I don't think I'm entering my web site in the proper format into mlm_settings.php on the following line:

$admin_webAddress = "http://" . $_SERVER['HTTP_HOST'];

I've tried these formats:
$admin_webAddress = "http://www.myhost.com" . $_SERVER['HTTP_HOST'];
$admin_webAddress = "http://www.myhost.com/mlm/" . $_SERVER['HTTP_HOST'];
$admin_webAddress = "http://" . $_SERVER['www.myhost.com'];
and several more.

What's the proper syntax? Thx
 

stanbusk

Administrator
Staff member
Just use:

$admin_webAddress = "http://www.myhost.com";

Actually this line is just to put your site address on the emails.
 

Momaw

New Member
Thanks. I'm still not sure why I'm getting the same error. Line 148 reads:

$path_to_script = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER[PHP_SELF];

Any ideas? Thx
 

stanbusk

Administrator
Staff member
Try to replace all that with the path of your script. Something like:

$path_to_script = "http://www.mydomain.tld/myfolder/mlm.php";
 
Top