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 Link to comment https://forums.phpfreaks.com/topic/228246-php-function-help/ 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 Link to comment https://forums.phpfreaks.com/topic/228246-php-function-help/#findComment-1177019 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.