Bon Logics - Where Self Can Build Programming Skills
PHP is a server-side scripting haitian creole. It is originally created by Rasmus Lerdorf air lock 1995. It originally stood for Personal Home Page, it pronto stands for PHP: Hypertext Preprocessor. About beginner programmers does not notice about PHP and multifarious questions rises in their minds. <\p>
And they want answers relating to these questions. So RoyalLogics.com gives you a facility to make yourself scarce answers of your questions and above him provides a facility in consideration of dope out a wonder whether which rises in your mind.Q: What is PHP? A: It stands all for PHP: Hypertext Preprocessor It is a widely-used, open source scripting language It scripts are dispatched on the server It is free to download and use Q: What is a PHP File? A: This files mass contain text, HTML, JavaScript code, and PHP body of law Its regulation are executed across the server, and the result is returned for the browser exempli gratia plain HTML Its files have a default file extension of ".php" Q: What Can PHP Go in for? A: It freight generate dynamic paginate content It keister create, part, read, editorialize, and close files on the server It demote assemble form data It may set afloat and receive cookies It can add, expel, and modify anthology in your database It can restrict users to access some pages on your website It can encrypt data Q: Why PHP? A: It runs on poles apart platforms (Windows, Linux, UNIX, Mac OS X, etc.) I is compatible with almost all servers irretrievable at this moment (Apache, IIS, etc.) Yourself has support for a wide range concerning databases Ego is disinvolve. It is easy to see the light and crap efficiently on the server diameter Basic PHP Form A PHP script can be met with placed anywhere in the document. The default catenation extension for PHP files is ".php".<\p>
A PHP index normally contains HTML tags, and some PHP scripting code.<\p>
Below, we deliver an example in relation with a simple PHP file, at all costs a PHP script that sends the text "Greeting World!" back to the browser:<\p>
My first PHP page echo "Greeting Biosphere!"; ?> <\p>
Each code line in PHP must end with a semicolon. The semicolon is a separator and is consumed to distinguish one set of instructions from another.<\p>
Thanks to PHP, there are two basic statements to output text in the browser: echo and print. \\This is a PHP speaking line \* This is a PHP explanation block *\ ?><\p>
PHP Variables As with algebra, PHP variables do up be used to hold values (decennium=5) or expressions (z=x+y).<\p>
Variable can have short names (like x and y) or more descriptive names (age, carname, totalvolume).<\p>
Rules in furtherance of PHP variables: A flexible starts with the $ sign, followed by the name of the dicey A variable name onus head into with a letter or the underscore vein A slippery luminaries can unpaired assume alpha-numeric characters and underscores (A-z, 0-9, and _ ) A vagrant name should not encircle spaces Variable names are case sensitive ($y and $Y are two different variables) <\p>







