PHP/Development/Php Environment
Содержание
A script to test phpinfo()
<?php
setcookie( "id", "999", time ()+3600, "/" );
?>
<html>
<head>
<title>A script to test phpinfo()</title>
</head>
<body>
<form action="<?php print "$PHP_SELF" ?>" METHOD="get">
<input type="text" name="user">
<br>
<select name="products[]" multiple>
<option>A
<option>B
<option>C
<option>D
</select>
<br>
<input type="submit" value="test!">
</form>
<p></p>
<?php
phpinfo();
?>
</body>
</html>
Get Php environment information
<? phpinfo(); ?>
PHP_OS: The operating system using PHP
<?
echo "<br>This test is being run on ".PHP_OS;
?>
PHP_VERSION: The version of PHP in use
<?
echo "<br>I am using ".PHP_VERSION;
?>