darkywarkey Posted July 5, 2008 Share Posted July 5, 2008 Trying to create a script that relies on returning the current directory of the script being run. Couldn't find any built in functions on the PhP manual... any ideas? Quote Link to comment Share on other sites More sharing options...
darkywarkey Posted July 5, 2008 Author Share Posted July 5, 2008 Nevermind, finally found it. getcwd() Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted July 5, 2008 Share Posted July 5, 2008 echo $_SERVER['SCRIPT_NAME']; echo "<br>"; echo __FILE__; echo "<br>"; echo $_SERVER['SCRIPT_FILENAME']; place that into a file to see different options. gdlk EDITED BY WILDTEEN88: Please wrap code within code tags ( ). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.