Тест $_GET и $_POST
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <html> <head> <meta charset= "utf-8" > <title>Тест GET and POST</title> </head> <body> <?php if (isset( $_GET [ 'test' ]) && ! empty ( $_GET [ 'test' ])) { echo ' $_GET работает ' ; } ?> <a href= "<?php $_PHP_SELF ?>?test=get" >Check $_GET </a> <?php if (isset( $_POST [ 'test' ]) && ! empty ( $_POST [ 'test' ])) { echo ' $_POST работает ' ; } ?> <form action= "<?php $_PHP_SELF ?>" method= "POST" > Тестовая строка: <input type= "text" name= "test" value= "value" /> <input type= "submit" /> </form> </body> |
Тест CURL
1 | <?PHP $ch = curl_init( 'http://kb.justhost.ru' ); curl_exec( $ch ); // выполняем запрос curl $result = curl_exec( $ch ); curl_close( $ch ); echo $result ; ?> |
Тест crypt
1 2 3 4 5 6 7 8 9 10 | <?PHP <?php echo ' SHA-256: ' . crypt(' justhost ', ' justhost ') . ' '; ?> |
Вывод:
SHA-256: juaFVzRYTG1JY