Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

annas

Hello dear friends I am going to post my first php tutorial: (Do comment your views).

  • one year ago
  • one year ago

  • This Question is Closed
  1. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    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.

    • one year ago
  2. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    Now friends I am going to show you how to write your first code in php. <?php //to start a php code you will put '<?php' it'll tell compiler that the code is started ?> //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

    • one year ago
  3. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    now the first php code, //this code will display hello world <?php echo "Hello world"; ?> //echo => its an output instruction output: Hello world Now, this code can be written by embedding html in it. <?php echo "Hello World<br><b>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}\)

    • one year ago
  4. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    we can also use a variable for this purpose: to initialize a variable in php we use $variable_name <?php $name = "Aproov"; echo "My friend name is $name"; ?> output: My friend name is Aproov

    • one year ago
  5. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    \[\color{maroon}{\mathtt{\text{<Comments>}}}\] 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 */

    • one year ago
  6. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    Thats it for this tutorial. I hope you'll learn from this tutorial. Good luck.

    • one year ago
  7. lgbasallote
    Best Response
    You've already chosen the best response.
    Medals 0

    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?

    • one year ago
  8. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    @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/

    • one year ago
  9. i-luv-choolates
    Best Response
    You've already chosen the best response.
    Medals 0

    It is very well written Annas

    • one year ago
  10. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    @Eyad see the first tutorial and do comment about it :)

    • one year ago
  11. Eyad
    Best Response
    You've already chosen the best response.
    Medals 0

    Good Job Mate! ,and btw u can just use Dreamweaver ...

    • one year ago
  12. Ron.mystery
    Best Response
    You've already chosen the best response.
    Medals 0

    Good job anns

    • one year ago
  13. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    thank you

    • one year ago
  14. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    i'll post my other tutorials very soon :)

    • one year ago
  15. Muskan
    Best Response
    You've already chosen the best response.
    Medals 0

    v well :)) God job,,,carry on..

    • one year ago
  16. moha_10
    Best Response
    You've already chosen the best response.
    Medals 0

    good job annas carry on

    • one year ago
  17. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    thank you guyz :)

    • one year ago
  18. ash2326
    Best Response
    You've already chosen the best response.
    Medals 0

    @annas Good work

    • one year ago
  19. annas
    Best Response
    You've already chosen the best response.
    Medals 13

    thanks ash :)

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.