get HTTP_AF_REMOTE_ADDR [closed] - php

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
I had a very important question
How do you get HTTP_AF_REMOTE_ADDR
What code and what version?
Run
echo $_SERVER['HTTP_AF_REMOTE_ADDR'];
error
Undefined index: HTTP_AF_REMOTE_ADDR -- at line 1
{
answered me;
my server limit
}

Many options:
$_SERVER['HTTP_AF_REMOTE_ADDR'];
filter_input(INPUT_SERVER, 'HTTP_AF_REMOTE_ADDR');
Second is preferable.

Related

Undefined function 'bloginfo'.intelephense(1010) [closed]

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 2 days ago.
Improve this question
Undefined function 'bloginfo'.intelephense(1010)
I'm facing this error in my code. pls assist
Undefined function 'bloginfo'.intelephense(1010)

In Laravel project 9 i'm getting this following error in the console [closed]

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 days ago.
Improve this question
enter image description here this is the scenario of error
How can I solve this error

If Current Domain is X, Then Include [closed]

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 8 years ago.
Improve this question
I'm trying to use some basic code to include a file if the current domain is http://example.com
How do I do this?
if (...){
include("../clicky.php");
}
$_SERVER can help in many ways
if($_SERVER['HTTP_HOST']=="example.com")
{
include("whatever");
}

PDO PHP how to customize header function [closed]

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
is there any way i can get the id inside this code:
header('Location: assigned.php?success?$ticket_id');
I am new to PDO. sorry for the simple question
You are adding ? twice. it should be like..
header('Location: assigned.php?success='.$ticket_id);

Php SimpleXMLElemenet not working [closed]

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 8 years ago.
Improve this question
i have this following line of code
$xml = new SimpleXMLElemenet($content);
but im getting this error
Fatal error: Class 'SimpleXMLElemenet' not found in
I have checked phpinfo and simpleXML is enabled.
Any ideas in how to fix this?
thanks
Spell "Element" correctly. It only has 7 letters in it.

Categories