Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

IP & Hostname

Posted on August 15, 2013October 30, 2015 By David Kittell
echo $_SERVER['REMOTE_ADDR'] . " - " . gethostbyaddr($_SERVER['REMOTE_ADDR']);
Originally Posted on August 15, 2013
Last Updated on October 30, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PHP

Post navigation

Previous post
Next post

Related Posts

UNIX Terminal – Grep Directory Recursively

Posted on May 22, 2016

Sometimes you really need to find a file that has certain text in it, these commands will help provided you have an idea of the directory or the string grep -R ‘final exam’ ~/Documents # OR find ~/Documents -type f -exec grep -H ‘final exam’ {} + All information on…

Read More

Coding Standards

Posted on July 11, 2013October 26, 2015

=============================== MercuryBoard Coding Standards =============================== Please follow these guidelines when modifying or adding to the MercuryBoard source. They are slightly modified PEAR (http://pear.php.net) coding standards. Indenting and Space ===================== Use an indent of 1 tab. After the first non-tab character on a line, spaces should be used for whitespace. There…

Read More

Ubuntu – Require Sudo Rights To Shutdown

Posted on November 28, 2017

If you are working with UNIX and you need to remove the ability for normal users to shutdown you can make this file change. This change will simply require a user with sudo access to type in their password before the machine can shutdown. sudo cp /usr/share/polkit-1/actions/org.freedesktop.login1.policy /usr/share/polkit-1/actions/org.freedesktop.login1.policy.orig There’s a…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes