<HMTL> <title>Basic HTML </title> <body> <h3>some content here.</h3> </body> </HTML>
__FILE__
and read as “underscore, underscore capital FILE underscore underscore”. Then lets add the following code.
<?php //it gives the full path where this is file is exactly located. echo __FILE__.'<br/>'; //it returns the result what exactly line is it located echo __LINE__.'<br/>'; //it gets the directory information about the file. // it simply check if the file exist and were using ternary operators. echo '<br/>'; //it gets the directory name of bascihtml.html file and return to yes or NO echo '<br/>'; //it checks if it is a file or not and it return to Yes because it is a file. echo '<br/>'; //it checks if it is a directory but this time it //return to No because this is a file and it is not a directory. echo '<br/>'; ?>