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


Top Questions

<?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. :)

re:

In its most general use, a function is what a given entity does in being what it is. For more information about function just visit this site www.n8fan.net

Alice
www.n8fan.net
Good Reference

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
14 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Check It !

Tweet It

W3 Updates

Stay informed on our latest news!

Syndicate content