What does PHP stand for?
PHP is known as Hypertext Preprocessor these days, but stood as personal home page way back in 1994/95 and 6 (glad it changed to a better-sounding name). Anyway… who cares about the history, unless u really do. Yeah! Google that :]
What is PHP used for?
PHP is used for web development; to produce dynamic web pages. And it wont function as a client-side script. It needs to run on a web server, for it to work. Youʹll understand better as you read the tutorial below.
As you may have heard, there is quite a number of server-side scripting languages such as: ASP, ColdFusion, Ruby, Python, Perl and few others as well. However my favorite for now is PHP, it is simple and user-friendly I think… Lets get started.
Open a text editor of your choice. And start typing (whatʹs in bold), then you can save it as a .php file, upload it to a server and test it yourself. I would recommend http://000webhost.com
OR you can also write this way: <?php echo “Hello TuteBox!”; ?> the top method is much cleaner and a professional way of coding. There is another alternative to echoing out; printing the message on the screen.
<?php
print “Hello TuteBox!”;
?>
Well, both ways do the same job. It is your choice, after all. I mostly use to echo out.
//(you necessarily need not use quotes for numbers)
$answer = $val1 + $val2;
echo “$val1 plus $val2 equals $answer”;
?>
The result would be: 3 plus 5 equals 8
Fine, lets wind up. Trust me, PHP is very easy to learn and interesting too. If you know the basics you surely can catch-up/understand any PHP code. However, if you really want to know more or get anything clarified just leave a comment below and we will get back to you as soon as possible. Good luck!
Go to PART 2
- thanks for your comments
Tagged coding, PHP, programming
goldlvl 40June 29, 2010 at 2:29 am
I truly loved this brilliant article. Please continue this awesome work. Regards, Duyq.
ftpJuly 3, 2010 at 9:08 am
This is a nice blog i must say, usually i don’t post comments on others’ blogs but would like to say that this post really forced me to do so!
Buy GenericJuly 14, 2010 at 9:02 pm
Great post, I Just wanted to comment that i am not able to connect to your rss stream, you defintely should install a wordpress plugin for that to workthat.
ruzeenJuly 18, 2010 at 9:30 amAuthor
http://tutebox.com/author/ruzeen/feed
Kala KipkaJuly 29, 2010 at 7:53 am
I’m bookmarking your site and I’ll be back. Thanks again!
Anthony RousellAugust 3, 2010 at 9:45 pm
Very informative post, love the best way you write and I believe that the knowledge helps in a way. I do not normally say this, but I feel this is a great job done. For those who wish to alternate links, I might be very happy to supply a link again to your site. Hope to hear from you soon. Cheers
Johnson KrumroyAugust 3, 2010 at 10:52 pm
Wherever can it be, i want to read much more about this posting, thank you.
ruzeenAugust 4, 2010 at 6:17 pmAuthor
http://tutebox.com/programming/basics-of-php-part2
hostgator reviewAugust 28, 2010 at 4:13 pm
seems like you guys have already added this feature !
RuzeenAugust 28, 2010 at 7:26 pmAuthor
TuteBox.com is a PHP site anyway.
Marcelino SiebertSeptember 10, 2010 at 2:37 pm
Great Post. Thanks for sharing!!
TumpkinSeptember 15, 2010 at 11:22 pm
I just twitted your post to my followers. You made a really good post. Thanks!