PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
define("LOCALHOST", true);
That's a great question. There isn't one that I'm aware of, but if you are, please let me know! If anyone else reads this and has suggestions, I'd be appreciative. To my knowledge, HTTP_HOST is the only environment variable available for testing in this regard. s2Member currently scans for 127.0.0.1 at the beginning, and localhost anywhere in the HTTP_HOST environment variable, as it's only way of auto-detecting localhost installations. Anything else must be specified in the /wp-config.php file with define("LOCALHOST", true); in order for s2Member to know.msafi wrote:I just wanted to say s2Member is brilliant! Thanks a lot for it.
Now, I just wanna ask, isn't there a way for the script to know when it's being run on a localhost, whose domain is other than 'localhost' and notify the user about the required wp-config.php edits?
It wasn't easy landing on this thread and finding the solution that Jason posted.
Cristián Lávaque wrote:Would SERVER_ADDR work?
Users browsing this forum: No registered users and 2 guests