Posts Tagged ‘relative path’

Absolute path and Relative path file inclusion in PHP

I think you guyz must be aware of absolute path and relative path in PHP. If you do not know anything about it then let me explain you about absolute path and relative path in the server with the example using include() function of PHP. You can see the example below, I've included the same files in PHP but the same file is included in two different manner. include("/home/example/public_html/config.php"); //absolute path include("config.php"); //relative path Full story