Re: Probaly a stupid newbie question.

From: Date: Wed, 05 Jul 2000 11:49:12 +0000
Subject: Re: Probaly a stupid newbie question.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4909@lists.php.net to get a copy of this message
> Hi ! > > I'm trying to implement some system satus on my web-page. > I would like to show system name, kernel name, OS name and some more things. > I have found the posix_*() functions and aspecially the posix_uname() function. According > to the doc's posix_uname() returns an array. Because of this, I have tried the following: > > $sysname = posix_uname(); > echo "Something : " . sysname[1]; I think that should be something like: $sysinfo = posix_uname(); echo 'Something : ' . $sysinfo['sysname']; echo 'other thing : ' . $sysinfo['release']; etc... > Another thing I'm having problems with, is the "\n" (newline) character. It doesn't seem to give me > e newline :-( Have tried this with: > echo "text\n"; > print "test\n"; > printf("text\n"); > > with absolutely no success. If you look at source of the resulting page you'd see the line breaks. The new line means nothing to the browser. Use <BR> or <BR>\n (to keep the resulting source readable). Something like : echo "text<BR>\n"; HTH Meir Kriheli MKsoft computer systems 'There's someone in my head but it's not me" - Pink Floyd

« previous php.general (#4909) next »