Jump to content


Photo

Curiosity


  • Please log in to reply
2 replies to this topic

#1 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 22 May 2006 - 04:16 PM

i was curious in knowing how to display for instance
www.yoursite.com/page=home
instead of www.yoursite.com/home.php

does anyone know how to accomplish this and if so can you help me

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 22 May 2006 - 04:33 PM

<?php
include (isset($_GET['page']) && !strpos($_GET['page'],".")) ? $_GET['page'].".php" : default.php;
?>


#3 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 22 May 2006 - 04:43 PM

[!--quoteo(post=376074:date=May 22 2006, 12:33 PM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ May 22 2006, 12:33 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
<?php
include (isset($_GET['page']) && !strpos($_GET['page'],".")) ? $_GET['page'].".php" : default.php;
?>
[/quote]

how would i customize it to work with for instance 2 differ pages and where do i put this code




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users