PHP/Network/URL Redirect

Материал из Web эксперт
Перейти к: навигация, поиск

Redirect to a URL

   <source lang="html4strict">

<? header("Location: www.wbex.ru"); ?>

      </source>
   
  


Using the ? Operator

   <source lang="html4strict">

<html> <head> <title>Using the ? Operator</title> </head> <body> <?php $mood = "sad"; $text = ( $mood=="happy" ) ? "a good mood" : "Not happy but $mood"; print "$text"; ?> </body> </html>

      </source>