Get IP remote user

How can I get the remote ip. I need it to validate. Where Can I find then enviorement variables of scritpcase.? I saw it some time ago, but now I can’t fint it.
thanks

I find it
echo $_SERVER[“REMOTE_ADDR”];
echo $_SERVER[‘SERVER_NAME’];
echo getenv(“REMOTE_ADDR”);
$serv = gethostbyname($REMOTE_ADDR)

but Where I can find the all environment variables of ScriptCase.??
thanks

Use the code:

// GET PROXY IP OR HOST LOCAL IP

$_Local_IP=getenv('HTTP_X_FORWARDED_FOR');

if ($_Local_IP>0) {
    $_Local_IP=getenv('HTTP_X_FORWARDED_FOR');
} else {
    $_Local_IP=getenv('REMOTE_ADDR');
}

echo 'IP is: '.$_Local_IP;

Outers:
SC Standard Folders / Documents / Images:

Both in the development environment and in production, just check these variables:
$this->Ini->path_doc // bring the file path
$this->Ini->path_imagens // bring the path of the images
$this->Ini->nm_cod_apl // stores the name of the current application.

  • Temporary folder PDF, .Xls, etc.
    use ‘wwwroort’ root relative path example:
    C: / Program Files / NetMake / v9 / wwwroot / scriptcase / tmp
    stands for links / scriptcase / tmp
$_SESSION['scriptcase']['dir_temp']; 

Look this Menu:

one question. I have recently purchase the support scriptcase. but most of time they don’t resolve me any question. I alway have to go forum to find some solution.
for example yo has solved me more question than the support.
my question is there any support paided aprt from scriptcase.?

The Netmake has their paid support, so it is to solve more questions about the tool and report bugs, now for advanced programming and tips the best place is here the BR forum and US forum.

One of the good things about acquiring the scriptcase tool is being able to count on the help of its users.

BR Forum: https://forum.scriptcase.com.br/latest
US Forum: https://forum.scriptcase.net/c/scriptcase-9/12

Always feel free to post in the 2 forums. :grin:

Through XBOX LIVE, I learned to chat with Americans and Canadians, every day.