How to use an asterix as a wildcard operator in a path, without being a comment tag, its commenting out the rest of my code in the variable below, after '/*'
$dir = array("/www/home/wwwroot/*");
How to use an asterix as a wildcard operator in a path, without being a comment tag, its commenting out the rest of my code in the variable below, after '/*'
$dir = array("/www/home/wwwroot/*");
use "
or '
for string
$dir = array('/www/home/wwwroot/*');
interesting reading What is the difference between single-quoted and double-quoted strings in PHP?
It's because of the quotes you are using. You can use ", but it's good practice in my opinion to use single quotes if you do not want to evaluate any variables inside the string:
$dir = array('/www/home/wwwroot/*');