quelle Posted February 20, 2011 Share Posted February 20, 2011 Im having a php file with buttons in root directory, so im asking is it possible to make a function that will check whether we are accessing it from (for ex.) root/blabla/index.php or root/index.php so it can display 1 of 2 different forms Quote Link to comment Share on other sites More sharing options...
cgsmith105 Posted February 20, 2011 Share Posted February 20, 2011 Yes: http://www.bin-co.com/php/articles/current_file_path.php 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.