Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am looking for a function in php that allows throwing IP into the same server.
This is how I should throw their ip into the page, so I will hear what function devices that can locate the people's ip?
Are you looking for the remote client address?
echo $_SERVER['REMOTE_ADDR'];
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 days ago.
Improve this question
$this->chat = new ChatFormatter;
$ev->setFormatter($this->chat::format($p->getName(), "test"));
Error: [23:39:12.370] [Server thread/CRITICAL]: Error: "Cannot instantiate interface pocketmine\player\chat\ChatFormatter"
I'm curious about the solution!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to program a DNS-leaktester in PHP. Is it possible? or do I have to use other languages like python etc. to get the information.
You can do it as well in PHP like in other languages. As for PHP try with:
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$dnsRecords = checkdnsrr($hostname);
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have this magento website, http://www.sample.com/udropship, want to change to http://udropship.sample.com
Please anybody who can help with this should please provide an answer.
This has nothing to do at all with php, mysql, css nor ajax. This a matter of DNS-setup. You should start at your DNS service, which is most probably also your webhost in your case.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Hello I'm trying to make redirections in wordpress for example if I have ip starting on 73.... I want to redirect to subpage. How and where can I do it? I have to use .htaccess file?
The code below is basic and will work sometimes, but users can spoof their IP address if they want to.
$userIp = explode('.', $_SERVER['REMOTE_ADDR']);
if (($userIp[0].'.'.$userIp[1].'.'.$userIp[2]) == '192.168.2')
{
header("location:sub.domain.com");
}
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How can I save each photoset to a folder on my server where the the name of the folder would be the title of the photoset.
Take a look at PHPFlickr. It makes it easy to interface to the Flickr API.