3 lines in PHP -> Java (not JavaScript)
Hi!
I need to translate the PHP code above:
if(($_SERVER["HTTP_HOST"]=='site.ru' || $_SERVER["HTTP_HOST"]=='www.site.ru' ) && ($_SERVER["REQUEST_URI"]=='/' || $_SERVER["REQUEST_URI"]=='index.php')) {
include("file.txt");
}
into corresponding code in Java.
Can you help me?
Thanks beforehand.
I need to translate the PHP code above:
if(($_SERVER["HTTP_HOST"]=='site.ru' || $_SERVER["HTTP_HOST"]=='www.site.ru' ) && ($_SERVER["REQUEST_URI"]=='/' || $_SERVER["REQUEST_URI"]=='index.php')) {
include("file.txt");
}
into corresponding code in Java.
Can you help me?
Thanks beforehand.
