perezf Posted May 22, 2006 Share Posted May 22, 2006 i was curious in knowing how to display for instancewww.yoursite.com/page=homeinstead of www.yoursite.com/home.phpdoes anyone know how to accomplish this and if so can you help me Link to comment https://forums.phpfreaks.com/topic/10192-curiosity/ Share on other sites More sharing options...
zq29 Posted May 22, 2006 Share Posted May 22, 2006 [code]<?phpinclude (isset($_GET['page']) && !strpos($_GET['page'],".")) ? $_GET['page'].".php" : default.php;?>[/code] Link to comment https://forums.phpfreaks.com/topic/10192-curiosity/#findComment-37987 Share on other sites More sharing options...
perezf Posted May 22, 2006 Author Share Posted May 22, 2006 [!--quoteo(post=376074:date=May 22 2006, 12:33 PM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ May 22 2006, 12:33 PM) [snapback]376074[/snapback][/div][div class=\'quotemain\'][!--quotec--][code]<?phpinclude (isset($_GET['page']) && !strpos($_GET['page'],".")) ? $_GET['page'].".php" : default.php;?>[/code][/quote]how would i customize it to work with for instance 2 differ pages and where do i put this code Link to comment https://forums.phpfreaks.com/topic/10192-curiosity/#findComment-37991 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.