Skip to main content
edited tags
Link
update punctuation
Source Link

I am using PHP for detecting a user's IP address and displaying their details, and I use OOP (i.e. object-oriented programming).

I am using PHP for detecting a user's IP address and displaying their details and I use OOP (i.e. object-oriented programming).

I am using PHP for detecting a user's IP address and displaying their details, and I use OOP (i.e. object-oriented programming).

Copy edited (e.g. ref. <https://en.wikipedia.org/wiki/IP_address>, <https://en.wikipedia.org/wiki/PHP>, and <https://en.wikipedia.org/wiki/Object-oriented_programming>). IP is a protocol; it is IP addresses that are static, filtered, that devices have, etc., not the protocol itself.
Source Link
Stephen Rauch
  • 4.3k
  • 12
  • 24
  • 36

IP address detection code in PHP

I am using PHP for detecting a user's IP address and displaying them their details and I use OOP (i.e. object-oriented programming).

This is my index.php code:

index.php:

This is my UserInfo.php code:

UserInfo.php

IP address detection code in PHP

I am using PHP for detecting a user's IP address and displaying them their details and I use OOP (i.e. object-oriented programming).

This is my index.php code:

This is my UserInfo.php code:

IP address detection code

I am using PHP for detecting a user's IP address and displaying their details and I use OOP (i.e. object-oriented programming).

index.php:

UserInfo.php

Copy edited (e.g. ref. <https://en.wikipedia.org/wiki/IP_address>, <https://en.wikipedia.org/wiki/PHP>, and <https://en.wikipedia.org/wiki/Object-oriented_programming>). IP is a protocol; it is IP addresses that are static, filtered, that devices have, etc., not the protocol itself.
Source Link
Loading
Became Hot Network Question
update wording
Source Link
Loading
Tweeted twitter.com/StackCodeReview/status/1274039246068776960
Source Link
Pscho
  • 29
  • 7
Loading