Wednesday, April 14, 2010

PHP (Week 7)

Today, the lecture was about the PHP. It is stand for PHP: Hypertext Preprocessor. PHP is a server-side scripting language used to enhance the capabilities of web pages. PHP is widely used for e-commerce, blogs, web based email services, content management systems (CMS), and personal and business websites in general.

There are some rules in PHP:

  • PHP goes inside the <?php and ?> tags
  • all statements must be end in ;
  • = --> means assign the following value
  • == --> means is the same as

Moreover, we can use PHP to create some applications, such as guestbook, counter, form mailer, etc.

There are 3 different ways of printing in PHP:

  • use print syntax
  • use echo syntax
  • use printf syntax

My PHP tutorial today not went really smooth. I struggled with the PHP syntax, especially when I tried to modify and copy the code. On the weekends, I am planning to spend my time to learn and practice more about the PHP. I hope I could get some ideas about the php syntaxes. xD



References

  • Internet Programming Slides, PHP, Internet Programming, viewed 14 April 2010

2 comments:

  1. hi, nice thinking and summary about PHP..

    ReplyDelete
  2. Hi Erin...thanks! xD but I'm still struggle with the PHP syntax... x(

    ReplyDelete