php glob not working on localhost XAMPP -


i'm trying php files folder on xampp. on linux server had no trouble using code, on windows machine seems impossible.

this path folder copied explorer:

c:\xampp\htdocs\project\pages 

this code:

$diruserpath = dirname(dirname(dirname(__file__))). "\pages"; $diradmin = glob($diruserpath . "*.php"); var_dump($diruserpath); var_dump($diradmin); 

and result code:

string(29) "c:\xampp\htdocs\project\pages" array(0) { }  

glob installed , there php-files in pages folder


Comments

Popular posts from this blog

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -