Hello,
I am trying to login from external php but it is not working here is my code
PHP:
Read more
I am trying to login from external php but it is not working here is my code
PHP:
Code:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$start_ob = false;
$ob_status = ob_get_status();
if (!is_array($ob_status)) {
$start_ob = true;
}
$fileDir = "/var/www/html/xf151/xf22";
require($fileDir . '/src/XF.php');
XF::start($fileDir);
$app = XF::setupApp('XF\Pub\App');
$app->start();
if (true == $start_ob) {
ob_start()...source https://xfworld.net/threads/xenforo2-login-is-not-working-from-external-php-page.47125/
No comments:
Post a Comment