JetBrains PhpStorm Not Resolving Server Variable?

142 Views Asked by At

The following line...

require_once $abs_us_root.$us_url_root.'users/includes/header.php';

is producing the IDE error:

Path '/var/www/projectName$us_url_rootusers/includes/header.php' not found.

the actual path to the file is

/var/www/projectName/public_html/users/includes/header.php

The variable is defined as:

$abs_us_root = $_SERVER['DOCUMENT_ROOT'];

Here are the deployment options I have set...

Type: Local or mounted folder

Upload/download project files: /var/www/projectName

Web server root URL: http://projectName

Local path: /var/www/projectName/public_html

Deployment path on server: /

Web path on server: /

0

There are 0 best solutions below