- Forums
- PHP
- How To Show the full Script directory Path In A Php File
this post will show you and display what is the path of the script file you are displaying and showing on php [1223], Last Updated: Sat May 18, 2024
wallpaperama
Sun Dec 14, 2008
0 Comments
1245 Visits
$_SERVER['SCRIPT_FILENAME']
if you want to know what is the absolute path in your php file you can use the $_SERVER['SCRIPT_FILENAME'] in php.
its easy, just open your text editor like notepad, and copy and past this code:
<?
echo $_SERVER['SCRIPT_FILENAME'];
?>
then save the file as wallpaperama.php and upload to your php website.
after you have uploaded to your site, open it with your browser and it will display what is the full path of your file
hope this helps