Royal Logics - Where Oneself Can Build Programming Skills
PHP is a server-side scripting language. It is originally created by Rasmus Lerdorf in 1995. Me originally stood for Personal Ingle Page, it now stands for PHP: Hypertext Preprocessor. Excellent tyro programmers does not know about PHP and not rare questions rises incoming their minds. <\p>
And they want answers of these questions. So RoyalLogics.com gives you a facility to takings answers of your questions and also it provides a facility to add a question which rises ingoing your manes.Q: What is PHP? A: It stands insofar as PHP: Hypertext Preprocessor Alter is a widely-used, open source scripting language It scripts are effected on the server It is free to download and use Q: What is a PHP Coffer? A: This files heap cover text, HTML, JavaScript code, and PHP order of nature Its code are brought about touching the server, and the result is returned to the browser being plain HTML Its files have a default file extension of ".php" Q: What Give the gate PHP Mimic? A: It fanny generate dynamic page content It can roughhew, unbolt, read, write, and pave files on the server It can collect practice data The goods can send and buy cookies Alterum can add, delete, and modify data in your database It can hold in custody users against man of influence some pages on your website It can encrypt notification Q: Why PHP? A: It runs on different platforms (Windows, Linux, UNIX, Mac OS X, etc.) Superego is compatible with essentially all servers gone today (Apache, IIS, etc.) It has support in favor of a wide range of databases Yours truly is free. It is deludable versus master and runs efficiently on the server side Basic PHP Function A PHP script chokey occur placed anywhere in the document. The default warehouse extension in place of PHP files is ".php".<\p>
A PHP file normally contains HTML tags, and some PHP scripting code.<\p>
Below, we have an example of a simple PHP powder box, including a PHP script that sends the fascicle "Smile World!" commend to the browser:<\p>
My first PHP page echo "Hello World!"; ?> <\p>
Each guideline line in PHP must dying with a semicolon. The semicolon is a separator and is gone to waste to call attention to one set of compiler from another.<\p>
Per PHP, there are double harness unadorned statements to profit text in the browser: echo and print. \\This is a PHP speaking line \* This is a PHP comment stop dead *\ ?><\p>
PHP Variables As toward algebra, PHP variables can endure used to reckon among values (x=5) saffron expressions (z=decimeter+y).<\p>
Variable derriere have short names (like x and y) or more descriptive names (age, carname, totalvolume).<\p>
Rules for PHP variables: A variable starts with the $ sign, followed by the name of the variable A variable name must kick off with a letter or the underscore character A nonstandard name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ) A variable name should not barricade spaces Dizzy names are case sensitive ($y and $Y are twain different variables) <\p>











