Linux web host - Chapter 4: Architecture of an Intranet Application function
Chapter 4: Architecture of an Intranet Application function get_server() { $this->set_url(); return $this->server; } function getAppPath() { return $this->app_path; } function getFQAP() { // get fully qualified application path return sprintf( %s%s ,$this->server, $this->app_path); } function getFQAN($thisApp = null) { return sprintf( %s/%s , $this->getFQAP(), $thisApp); } function getTemplateDir() { return $this->template_dir; } function set_url() { $row_protocol = $this->getEnvironment( SERVER_PROTOCOL ); $port = $this->getEnvironment( SERVER_PORT ); if ($port == 80) { $port = null; } else { $port = : . $port; } $protocol = strtolower(substr($row_protocol,0, strpos($row_protocol, / ))); Continued
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision personal web hosting services