I am not sure about which platform my code goes to host, so im using directory separator in my code.
I followed this link - how-to-get-a-platform-independent-directory-separator-in-php
but the accepted answer is not what i am looking (string replacement). Although another solution with "DIRECTORY_SEPARATOR" is something what I was looking for but my concern is when i checked the docs at -> dir.constants
They said - The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
So from where I can check whether this extension is available or not, I checked from phpinfo()
method but unable to locate under it, how can I locate this whether installed or not ? . If its available in all so can i proceed with this dummy code or not -
$headurl = $_SERVER['SERVER_NAME'].'/'.'backgroundimage.jpg';