From: Christian RIshoej Date: 2001-09-03T18:52:13+09:00 Subject: [ruby-talk:20764] Re: php.net style online manual In article , "Jack Dempsey" wrote: > Since that structure's already setup, I could probably implement the > header redirections needed when i find a few free moments.... speaking > of which...does ruby have a header function that acts like header in > PHP? Instances of class CGI have a header method that acts like the one in PHP if running in the MOD_RUBY environment (from PR): aSession.header( aContentType="text/html" ) -> aString aSession.header( aHash ) -> aString Returns a string containing the given headers (in the MOD_RUBY environment, the resulting header is sent immediately instead). If a hash is given as an argument, then the key-value pairs will be used to generate headers. /C