Tuesday, August 23, 2011

Which function in PHP gives us absolute path of a file on the server?

<?php
$p
= getcwd();
echo
$p;?>
Ans: getcwd() Here I have stored my files under httdocs (using php5,i haven't checked under php4) so I get the output as C:\apache2triad\htdocs you may get your path information while runnings the above code. :)

No comments:

Post a Comment

Thank you for your Comment....

Popular Posts