Wednesday, March 18, 2020

Downfall of Russia essays

Downfall of Russia essays Tzar Nicholas II - downfall of Russia It was Tzar Nicholas 2 political naivete and extreme obstinance that led to the downfall of the Russia Certain aspects of Tsar Nicholas 2s behaviour definitely contributed to bringing about the fall of the Russian Empire, however most of these qualities were not weaknesses in character as such, they were qualities we would associate with poor leadership. When we say weakness in character we mean being easily influenced/controlled by others. Nicholas himself was a firm believer in autocracy; he was virtually unmovable in this belief. And this obstinant belief clearly illustrates he stuck to his beliefs, although in his early years as tsar his uncles had huge influence. That said, the fall of the Russian Empire was not all a result of Nicholas character and poor leadership qualities, we must also see that the huge socio-economic changes happening as well as the outbreak WW1 hugely influenced the coming about of and the timing of the revolution. These changes would be hard for any government to manage. Nicholas 2s firm and obstinant belief of his commitment to autocracy can be clearly seen in a letter of reply he sent to a liberal zemstvo head before his coronation. I shall maintain the principal of autocracy just as firmly and unflinchingly as it was preserved by my unforgettable dead father (Alexandra 3)(Nicholas belief in autocracy they would have been put to rest. Pobenonstev was once called The Highest Priest of Social Stagnation. He once declared, Among the falsest of political principles is the principle of sovereignty of the people. In his early manhood Nicholas lived th...

Sunday, March 1, 2020

How to Find the PHP Document Root

How to Find the PHP Document Root The PHP document root is the folder where a PHP script is running. When installing a script, web developers often need to know the document root. Although many pages scripted with PHP run on an Apache server, some run under Microsoft IIS on Windows. Apache includes an environment variable called DOCUMENT_ROOT, but IIS doesnt. As a result, there are two methods for locating the PHP document root. Finding the PHP Document Root Under Apache Instead of emailing tech support for the document root and waiting for someone to respond, you can use a simple PHP script with getenv (), which provides a shortcut on Apache servers to the document root. These few lines of code return the document root. Finding the PHP Document Root Under IIS Microsofts Internet Information Services was introduced with Windows NT 3.5.1 and has been included in most Windows releases since then- including Windows Server 2016 and Windows 10. It does not supply a shortcut to the document root. To find the name of the currently executing script in IIS, begin with this code: print getenv  (SCRIPT_NAME); which returns a result similar to: /product/description/index.php which is the full path of the script. You dont want the full path, just the name of the file for SCRIPT_NAME. To get it, use: print realpath(basename(getenv(SCRIPT_NAME))); which returns a result in this format: /usr/local/apache/share/htdocs/product/description/index.php To remove the code referring to the site-relative file and arrive at the document root, use the following code at the beginning of any script that needs to know the document root. $localpathgetenv(SCRIPT_NAME);$absolutepathrealpath($localPath);// fix the Windows slashes$absolutepathstr_replace(\\,/,$absolutepath);$docrootsubstr($absolutepath,0,strpos($absolutepath,$localpath));// an example of useinclude($docroot./includes/config.php); This method, although more complex, runs on both IIS and Apache servers.