the following behaves different in host:
echo 'DIR:' .__DIR__; // DIR:__DIR__
localhost:(works fine):
DIR:C:\Program Files\VertrigoServ\www
why this different output?
You need PHP 5.3 to use __DIR__
Manual page
On previous versions you may use dirname(__FILE__)
instead
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With