anonymous
  • anonymous
Hello dear friends I am going to post my first php tutorial: (Do comment your views).
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
PHP is a general-purpose server-side scripting language originally designed for Web development to produce dynamic Web pages. It is one of the first developed server-side scripting languages to be embedded into an HTML source document rather than calling an external file to process data. The code is interpreted by a Web server with a PHP processor module which generates the resulting Web page. It also has evolved to include a command-line interface capability and can be used in standalone graphical applications.
anonymous
  • anonymous
Now friends I am going to show you how to write your first code in php. //to end the php code you will put '?>' . It'll tell compiler when to stop. between these starting and end delimiters you'll write the php instructions
anonymous
  • anonymous
now the first php code, //this code will display hello world //echo => its an output instruction output: Hello world Now, this code can be written by embedding html in it. This text is bold"; ?> //BR => it's a line break instruction //B => it is used for making the text bold output: Hello World \(\mathbf{This}\) \(\mathbf{text}\) \(\mathbf{is}\) \(\mathbf{bold}\)

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
we can also use a variable for this purpose: to initialize a variable in php we use $variable_name output: My friend name is Aproov
anonymous
  • anonymous
\[\color{maroon}{\mathtt{\text{}}}\] like C language, php also have comments. Comments are used to increase the readability of a program. There are two types of comments 1. single line 2. multi line For single line comments we type // and text put after these are ignored by the compiler For multi line comments we type /* text after this is ignored until compiler finds */
anonymous
  • anonymous
Thats it for this tutorial. I hope you'll learn from this tutorial. Good luck.
lgbasallote
  • lgbasallote
i see this has a lot of resemblance to C language. i think if a person has background on C language then this is not that hard yes? interesting. one question though. where can i type php? i mean does notepad support it? or dev c++? or a completely new software?
anonymous
  • anonymous
@lgbasallote yes a person with C language background can easily learn this language. for php you'll need a server to execute you code or if you dont like to pay for server then download & install xampp. to write php code you can use a notepad or a notepad++ and save your file with an extension .php. link to download xampp and notepad++ are as under: 1.http://www.apachefriends.org/en/xampp.html 2.http://notepad-plus-plus.org/
anonymous
  • anonymous
It is very well written Annas
anonymous
  • anonymous
@Eyad see the first tutorial and do comment about it :)
anonymous
  • anonymous
Good Job Mate! ,and btw u can just use Dreamweaver ...
anonymous
  • anonymous
Good job anns
anonymous
  • anonymous
thank you
anonymous
  • anonymous
i'll post my other tutorials very soon :)
anonymous
  • anonymous
v well :)) God job,,,carry on..
anonymous
  • anonymous
good job annas carry on
anonymous
  • anonymous
thank you guyz :)
ash2326
  • ash2326
@annas Good work
anonymous
  • anonymous
thanks ash :)

Looking for something else?

Not the answer you are looking for? Search for more explanations.