Content added Content deleted
imported>DrOwl No edit summary |
imported>dial-213-168-89-189.netcologne.de No edit summary |
||
Line 25: | Line 25: | ||
</pre> |
</pre> |
||
--- |
|||
Header Redirect to a webpage in PhP: |
|||
<? |
|||
Header("Location:$gourl"); |
|||
?> |
|||
http://somedomain.com/redirect.php?gourl=http://someotherdomain.com/hello.html |
|||
--- |
Revision as of 03:52, 4 February 2003
Redirection
cat /dev/null > file clear out a file > redirect output to file >! Redirect output to file even if file is protected >> redirect output to a file apends to existing file >>! redirect output to a file apends to existing file even if file is protected < redirect file to a commands input << redirect file to a commands input untill txt encounterd >& redirect output to file and error aswell cat Files* >> NewBigFile wc << cat file WC word count 2>&1 Redirect error out to std out
---
Header Redirect to a webpage in PhP:
<? Header("Location:$gourl"); ?>
http://somedomain.com/redirect.php?gourl=http://someotherdomain.com/hello.html
---