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 Quote Link to comment Share on other sites More sharing options...
trq Posted January 29, 2008 Share Posted January 29, 2008 <?php echo str_replace('.php','',$str); ?> Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
trq Posted January 29, 2008 Share Posted January 29, 2008 $_SERVER['PHP_SELF']. Quote Link to comment 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 :-) Quote Link to comment 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)? Quote Link to comment Share on other sites More sharing options...
dennismonsewicz Posted January 29, 2008 Author Share Posted January 29, 2008 FIGURE IT OUT! THANKS AGAIN! 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.