dennismonsewicz Posted January 29, 2008 Share Posted January 29, 2008 Ok... I want to be able to use the breadcrumb function in PHP but with a twist. Is there anyway to capture the page someone is one and display the breadcrumb backlinks capturing the page and stripping the .php from the page? Example: You are here: HOME > Users.php But I want to take the .php away from the Users.php to give the user this: You are here: HOME > Users Link to comment https://forums.phpfreaks.com/topic/88460-solved-exploding-dynamic-indexphp/ Share on other sites More sharing options...
trq Posted January 29, 2008 Share Posted January 29, 2008 <?php echo str_replace('.php','',$str); ?> Link to comment https://forums.phpfreaks.com/topic/88460-solved-exploding-dynamic-indexphp/#findComment-452770 Share on other sites More sharing options...
dennismonsewicz Posted January 29, 2008 Author Share Posted January 29, 2008 Awesome! But now how would I capture the page a user is on? Link to comment https://forums.phpfreaks.com/topic/88460-solved-exploding-dynamic-indexphp/#findComment-452782 Share on other sites More sharing options...
trq Posted January 29, 2008 Share Posted January 29, 2008 $_SERVER['PHP_SELF']. Link to comment https://forums.phpfreaks.com/topic/88460-solved-exploding-dynamic-indexphp/#findComment-452785 Share on other sites More sharing options...
kratsg Posted January 29, 2008 Share Posted January 29, 2008 http://us3.php.net/function.parse-url That function may work wonders for you :-) Link to comment https://forums.phpfreaks.com/topic/88460-solved-exploding-dynamic-indexphp/#findComment-452791 Share on other sites More sharing options...
dennismonsewicz Posted January 29, 2008 Author Share Posted January 29, 2008 Thanks for everyones help. I love this forum! One more question: How would I uppercase just the first letter of a word using php? Wouldn't it be like ucase($string)? Link to comment https://forums.phpfreaks.com/topic/88460-solved-exploding-dynamic-indexphp/#findComment-452817 Share on other sites More sharing options...
dennismonsewicz Posted January 29, 2008 Author Share Posted January 29, 2008 FIGURE IT OUT! THANKS AGAIN! Link to comment https://forums.phpfreaks.com/topic/88460-solved-exploding-dynamic-indexphp/#findComment-452822 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.