PHP/Development/Php Environment

Материал из Web эксперт
Перейти к: навигация, поиск

A script to test phpinfo()

setcookie( "id", "999", time ()+3600, "/" );
<title>A script to test phpinfo()</title>
<form action="<?php print "$PHP_SELF" ?>" METHOD="get">
<input type="text" name="user">
<select name="products[]" multiple>
<input type="submit" value="test!">

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;