All Questions
Tagged with ip-address php
336
questions
0
votes
2
answers
409
views
VMWare REST Api - Get information about VM by ip address using PHP
I'm using the VMWare REST API (/api/vcenter/host) to query information about the VM Hosts registered on a vCenter. I would like to get the name of the VM if I search for the IP address and also the ...
0
votes
1
answer
70
views
TYPO3 - Doctrine / DBAL data field type for BINARY(16) encoded IPv6 addresses
I am implementing an ORM model for a TYPO3 plugin that is a connector to an existing external database. I got most things done by myself but I don't know how to parse an IPv6 address from the given ...
1
vote
0
answers
100
views
php - Check if an array exist then append it in a json file
i store client's ip address in a json file named "log.json" in a format showing below.
[
{
"Country": "XX",
"IP": "x.x.x.x"
},
...
1
vote
0
answers
312
views
how do I get a client's IP address in php (help! nothing works!)
I've been trying to fetch the client IP for a php tool that I created, but it will only get one IP address, no matter who uses it. I'm using repl.it, and it probably is getting the server IP.
if(!...
0
votes
1
answer
319
views
Regex PCRE2 verify range of ip address
Currently I'm working on a regular expression wrote in PCRE2 to check a range of IP address
^(10\.).+|(172\.16).+|(192\.168).+
I need the regular expression to check also if in the string I can find ...
0
votes
1
answer
73
views
is there a way to get clients IP addresses through this PHP form
is there a way to get clients IP addresses through this PHP form or can someone help the right way to get the ip adress here.
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1)...
0
votes
0
answers
143
views
how to get ethernet Ip and public Ip?
I can find a lot of information how to get public Ip but not the ethernet one.
I am not sure if the you should get the ethernet one as easy as the public one in php.
0
votes
2
answers
267
views
How to restrict website accessing, if user is on remote device and not on a work computer? (work time tracker app)
I would like to make a PHP website, where employees can log in/out themselves and these logs will count as a time when they started and ended their working day. I would like to allow them to do that ...
0
votes
0
answers
144
views
PHP code to save visitor's IP address in an excel file visiting on a webpage on my website
I want to save all the IP data of the visitors browsing a webpage of my website. I already have a code for the process, however, I want to save the data in an excel file and send an email with the ...
0
votes
1
answer
288
views
Check if file name contains IP address and get the free file name PHP
I am trying to check if files in a directory contain a specific ip address. If the IP address is not found in the file name I want a file with the not found IP adress in the file name to be moved ...
0
votes
0
answers
127
views
unique visitor count not working with cookies
I am Beginner and want to learn how to count unique visitors by using PHP cookies. I tried to write this code. And also I am storing it in a database. The problem is I am not getting real visitors ...
0
votes
2
answers
752
views
How Can I get Full IP Range of an IP List in PHP
I have some it's in a text file ips.txt. I want to get the full IP range of each IP from that list.
The following is included in ips.txt
37.123.206.198
115.84.182.49
154.16.116.35
...
1
vote
0
answers
266
views
IP API in php smarty template engine
I used the php smarty template for development, and when i use ip location finder API of user submitting a form on my website, the form could not be submitted, instead, in view source, it shows
<...
0
votes
0
answers
93
views
Compilation of (almost) all proxy headers to retrieve the real user ip?
As a plugin author my plugins will be used on many different server configurations. In the case when a plugin needs to retrieve the real user IP behind a proxy, and the proxy is a known proxy such as ...
0
votes
0
answers
125
views
Facebook ip address for access my database because of OG meta tags
I tried facebook debugger with articles on my website. I use argument "n" as ID of news. But with this argument, debugger returns error with code 404. Other sites works fine. I am getting ...