yandeu / five-server

⚡ Development Server with Live Reload Capability. (Maintained Fork of Live Server)
https://www.npmjs.com/package/five-server
Other
165 stars 14 forks source link

server fails when a PHP file has include statement #124

Open caulmseh opened 9 months ago

caulmseh commented 9 months ago

error shows

stderr: PHP Warning: include(include/navbar.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\Gandacatering\.php_tmp\index.php on line 14PHP Warning: include(): Failed opening 'include/navbar.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\Gandacatering\.php_tmp\index.php on line 14 sorry I can't format bug reports properly but I think this would suffice

inject body, navigate, and highlight options are enabled

JPnux commented 2 weeks ago

i have the same error i think it's because navbar.php or header in my case are in a subfolder and not in the same folder as the index.php file

the extension created a folder named .php_tmp with index.php et header.php so there is not "include" folder. how can i fix that ?

we can't use subfolders ?