Thursday, March 19, 2020

How to Tell Which Version of PHP You Have

How to Tell Which Version of PHP You Have If you cant get something to work and think it might  be because you have the wrong version of PHP, theres a really simple way to check the current version.   Different versions of PHP may have different default settings, and in the case of newer versions, might have new functions. If a PHP tutorial is giving instructions for a particular version of PHP, its important to understand how to check the version you have installed. How to Check the PHP Version Running a simple PHP file will not only tell you your PHP version but an abundance of information about all your PHP settings. Just put this single line of PHP code in a blank text file and open it on the server: ?php phpinfo() ? Below is how to check the locally installed version of PHP. You can run this in Command Prompt in Windows or Terminal for Linux/macOS. php -v Heres an example output: PHP 5.6.35 (cli) (built: Mar 29 2018 14:27:15)Copyright (c) 1997-2016 The PHP GroupZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies Is the PHP Version Not Showing in Windows? Given that you actually are running PHP on your web server, the most common reason for the version of PHP not showing up is if the path to PHP is not set up with Windows. You might see the error like this if the correct environment variable isnt  configured: ‘php.exe’ is not recognized as an internal or external command, operable program or batch file. In a Command Prompt, type the following command, where the path after C: is the path to PHP (yours may be different): set PATH%PATH%;C:\php\php.exe

Tuesday, March 3, 2020

The Benefits of Learning Latin

The Benefits of Learning Latin Erras, mi Lucili, si existimas nostri saeculi esse vitium luxuriam et neglegentiam boni moris et alia, quae obiecit suis quisque temporibus; hominum sunt ista, non temporum. Nulla aetas vacavit a culpa. Seneca Epistulae Morales XCVII You probably wouldnt be reading this Ancient/Classical History feature if you thought classical culture should be confined to museums and dusty tomes. But taking the next step, reading the classics in the original, demands commitment and can take years. Latin Grammar is the Best Grounding for Education Unlike their parents, your school-aged children have time to devote to acquiring a skill that will last them a lifetime. But why should they learn Latin? Dorothy Sayers says it best: I will say at once, quite firmly, that the best grounding for education is the Latin grammar. I say this not because Latin is traditional and medieval, but simply because even a rudimentary knowledge of Latin cuts down the labor and pains of learning almost any other subject by at least 50 percent. From the National Review. Latin Helps With English Grammar While neither the language nor grammar of English derives from Latin, many of our grammatical rules do. For instance, since you CANT have a dangling preposition in Latin, certain purists consider it bad form in English. Latin Makes You More Careful in English In Latin, you have more to worry about than whether a plural pronoun refers to a singular noun (as in the politically correct - grammatically incorrect: each student has their own workbook). In Latin, there are 7 cases with which not only pronouns  but adjectives - not to mention verbs -   must agree. Learning such rules makes the student careful in English. But more important is the fact that traditional study of Latin starts out with a grammatical framework... As American students begin Latin, they become acquainted with the Latin grammar system, which they can indirectly transfer to their work in English. What it gives them is a standardized set of terms in which to describe words in relations to other words in sentences, and it is this grammatical awareness which makes their English writing good.William Harris Latin Helps You Maximize SAT scores This sells Latin programs. Through Latin, test takers can guess at the meanings of new words because they already know the roots and prefixes. But its not just enhanced vocabulary. Math scores also increase. Latin Increases Accuracy This may be due to the increased accuracy Professor Emeritus William Harris notes:​ From another point of view, the study of Latin does foster precision in the use of words. Since one reads Latin closely and carefully, often word by word, this focuses the students mind on individual words and their usage. It has been noticed that people who have studied Latin in school usually write quite good English prose. There may be a certain amount of stylistic imitation involved, but more important is the habit of reading closely and following important texts with accuracy.