Kesavan Muthuvel's Personal Home Page

Index | Bookmarks | I'm supporting | More info? | Royal Thunderbird! | Maemo N900 | Nexus 4 (Android + more ) | KODI [aka] XBMC | My Public Key (GPG) | My Sign | Travel Photos | Blog
Thanks to.. | Open Materials | interview qns | scripts to look | RegEx me! | Web Dev tips | eBooks Collection
Looking for a girl A day - a cartoon Shameless self promo Generate random values

Scripts I like

Here are some scripts which are useful for preparations in PHP / MySQL .Please run these.Don't just read this. Thanks to highlight_file() of PHP.

PHP Info | echo Vs print | PHP MCRYPT | PHP FUNCTION(?) | PHP __wakeup() | PHP Date Calc | PHP Multi file attach MAIL | MySQL Date Calc | PHP OOPs | jQuery

<?php
#phpinfo();

 
echo "Hostname: ". @php_uname(n) ."\n";
 if (
function_exists'shell_exec' )) {
  echo 
"Server IP: ". @gethostbyname(trim(`hostname`)) . "\n";
 } else {
  echo 
"Server IP: "$_SERVER['SERVER_ADDR'] . "\n";
 }
 echo 
"Platform: ". @php_uname(s) ." ". @php_uname(r) ." ". @php_uname(v) ."\n";
 echo 
"Architecture: ". @php_uname(m) ."\n";
 echo 
"Username: "get_current_user () ." ( UiD: "getmyuid() .", GiD: "getmygid() ." )\n";
 echo 
"Curent Path: "getcwd () ."\n";

var_dump($_SERVER);

 echo 
"Server Type: "$_SERVER['SERVER_SOFTWARE'] . "\n";
 echo 
"Server Admin: "$_SERVER['SERVER_ADMIN'] . "\n";
 echo 
"Server Signature: "$_SERVER['SERVER_SIGNATURE'] ."\n";
 echo 
"Server Protocol: "$_SERVER['SERVER_PROTOCOL'] ."\n";
 echo 
"Server Mode: "$_SERVER['GATEWAY_INTERFACE'] ."\n";
?>


Return to Kesavan Muthuvel's home page.

Please send comments on these web pages to hi@kesavan.info (or)  Feedback here

CopyLeft (Ͻ) 2008 - 2015 Kesavan Muthuvel More on CopyLeft

I Don't Love FaceBook