10 More Discussions You Might Find Interesting
1. Linux
Hi guy,
I am new to Linux,can I know how can I download the epel-release offline package to install as my centos 7 is not connect to Internet . Any help is appreciated (2 Replies)
Discussion started by: leecopper
2 Replies
2. Red Hat
Hi,
I am getting below error while trying to install oracle 12c release 2 on rhel 7.
$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 10828 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2559 MB ... (2 Replies)
Discussion started by: balasahu
2 Replies
3. Solaris
Hi all,
I am a newbie with sunblade 2000 hardware.
I need to format the server and re-install a new solaris release, and I don't know how to do... If I try to boot on a CD, it didn't boot, Is it normal ?
Do I need to go to a bios ? what is the key sequence ? to plug a console ? on which port ?... (1 Reply)
Discussion started by: Fritch
1 Replies
4. Red Hat
well hi to all
The thing is I need to allow particular site to just one or 2 user
not to everybody. Can anybody tell me how do i do it. If i put there
ip in exception then whole Restriction would be bypassed which i dont
want. Your Responses would be highly appreciated
THANKS in ADVANCE (0 Replies)
Discussion started by: achtani_jeetu
0 Replies
5. BSD
Hi,
I am trying to install Free BSD release 8.0 on my Dell XPS Studio laptop along with already existing Windows partition. (150GB for Win Vista, 30GB for win backup and 130 GB for Free BSD). To do trial I first installed it on Sun virtual Box in Windows where it installed without any complaints.... (2 Replies)
Discussion started by: dheerajsuthar
2 Replies
6. Filesystems, Disks and Memory
After much hitting my head to the wall with this meesages
root@crasher /workzone/dvd4_sfb-sol_x64]#./installer -verbose -installonly
5.0MP3 Installation Program
Copyright (c) 2008 Symantec Corporation. All rights reserved. Symantec, the Symantec... (1 Reply)
Discussion started by: tristezo2k
1 Replies
7. Linux
If may install can Tells everybody ??? (0 Replies)
Discussion started by: kzBSD
0 Replies
8. Cybersecurity
Hi everybody!
Sorry for my intrusion but I'd like to submit a problem which is driving me crazy!
To implement the application I'm working on I must set an application layer firewall,
consequently I've installed and configured on my machine Squid + Dansguardian vs 2.8
(I'm using Debianrelease... (2 Replies)
Discussion started by: rossella
2 Replies
9. Programming
Hi, I am currently doing a project to remove the dependency on a web server of dansguardian if anyone has any tips or points either on sections of code I need to modify or about how to build a very very simple web server. I would be very appreciative
Thanks.. (4 Replies)
Discussion started by: cb.mark
4 Replies
10. OS X (Apple)
I've just Dl'd and installed the osxgnu package of danguardian and squid on my 10.2 machine, which is mainly used as a router/firewall (set up with brickhouse)
And now I'm not quite sure what to do next...I have a speedtouch 330 USB ADSL modem and I share the connection via built in ethernet. ... (1 Reply)
Discussion started by: mistafeesh
1 Replies
PHP_UNAME(3) 1 PHP_UNAME(3)
php_uname - Returns information about the operating system PHP is running on
SYNOPSIS
string php_uname ([string $mode = "a"])
DESCRIPTION
php_uname(3) returns a description of the operating system PHP is running on. This is the same string you see at the very top of the
phpinfo(3) output. For the name of just the operating system, consider using the PHP_OS constant, but keep in mind this constant will con-
tain the operating system PHP was built on.
On some older UNIX platforms, it may not be able to determine the current OS information in which case it will revert to displaying the OS
PHP was built on. This will only happen if your uname() library call either doesn't exist or doesn't work.
PARAMETERS
o $mode
-$mode is a single character that defines what information is returned:
o 'a': This is the default. Contains all modes in the sequence "s n r v m".
o 's': Operating system name. eg. FreeBSD.
o 'n': Host name. eg. localhost.example.com.
o 'r': Release name. eg. 5.1.2-RELEASE.
o 'v': Version information. Varies a lot between operating systems.
o 'm': Machine type. eg. i386.
RETURN VALUES
Returns the description, as a string.
EXAMPLES
Example #1
Some php_uname(3) examples
<?php
echo php_uname();
echo PHP_OS;
/* Some possible outputs:
Linux localhost 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686
Linux
FreeBSD localhost 3.2-RELEASE #15: Mon Dec 17 08:46:02 GMT 2001
FreeBSD
Windows NT XN1 5.1 build 2600
WINNT
*/
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
echo 'This is a server using Windows!';
} else {
echo 'This is a server not using Windows!';
}
?>
There are also some related Predefined PHP constants that may come in handy, for example:
Example #2
A few OS related constant examples
<?php
// *nix
echo DIRECTORY_SEPARATOR; // /
echo PHP_SHLIB_SUFFIX; // so
echo PATH_SEPARATOR; // :
// Win*
echo DIRECTORY_SEPARATOR; //
echo PHP_SHLIB_SUFFIX; // dll
echo PATH_SEPARATOR; // ;
?>
SEE ALSO
phpversion(3), php_sapi_name(3), phpinfo(3).
PHP Documentation Group PHP_UNAME(3)