Important to know:

ывапывап
Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

Is there an alternative to using the getcwd function? Print

  • 1

Yes, there is such an alternative. You must use an absolute path using the realpath function


The index.php file, which is used by default in CMS Drupal:
define('DRUPAL_ROOT', getcwd());

 

The index.php file, which is used by default in CMS Drupal:
$drupaldir = realpath('/var/www/vhosts/yourdomain/httpdocs');
define('DRUPAL_ROOT', $drupaldir);


Was this answer helpful?

« Back

Powered by WHMCompleteSolution