PHP For Newbie

14/11/2008

In before to share my today’s learning, I would like to say thanks you emran bro (who gave me this awesome link) and big-big hug to vikram vaswani who wrote and excellent tutorials in a good sequence and adding delicious items on his first part “down the rabbit hole” tutorials. Shortly, I’ll move forwards.

I learned the basic actions of variable, how actually variable works, boolean, string, integer, floating-point and example of market value. I also read the briefly types on php language types (main page only and I have some problem on that example -i’ll digg more). Thing is that you can’t stop to reading the PHP manual and it’s so helpful in different times. Don’t follow me – i would like to follow you.

Today bit tired to pressing “shift+$“. See ya soon.

No Comments

From PHP Manual

9/11/2008

At beginning, one of my friend said to me, ” I should read the PHP Manual“. But, I found on Chapter 2: A Simple Tutorial they said, “…We have an if statement. If you are familiar with the basic syntax used by the C language, this should look logical to you. Otherwise, you should probably pick up an introductory PHP book and read the first couple of chapters, or read the Language Reference part of the manual.”. Hope you got my points.

However, on chapter they introducing with variables.
<?php echo $_SERVER['HTTP_USER_AGENT']; ?>

On that codes you will see $_SERVER is a variable and that will handle PHP automatically.
After the execution you will see Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

Note that the result will be vary and based on your system and browser versions.

1 Comment