PHP Programming For Beginners
Maybe you are certainly familiar with the word PHP(Hypertext Preprocessor), but you don’t know how powerful programming language is. Many features this can offer you, Nowadays PHP has the advantage of being the only open-source server-side scripting language that is easy to learn as long as you wanted to. This is not just for advertising: based on the recent surveys on the web, it shows that more than 17,000,000 websites used PHP as their server-side scripting language and only this language has the most popular apache modules..
My aim in this article is quiet simple: I will introduce you the basic PHP Programming, and prove you why for me this is the best tool for developing a Web Application on this generation. I’ll not test your level of skills or knowledge what important is that, you understand the basic HTML and have a little bit passion of yourself.
Now shall we start?
The Right Overview
PHP is typically used in combination with a Web server like Apache it can also be in IIS. Requests for PHP scripts are received by the Web server, and are handled by its PHP interpreter. The results obtained after execution are returned back to Web server, which is responsible to transmit back to the client browser. In the PHP script itself, you can make what you want. Example: you want to process user input, massive calculations, write and read files, or you interact with a database.
From the above explanation, I think you are ready to begin using PHP Programming ,you must have proper development environment setup.
This tutorial is focus on using WAMP(Windows,Apache,MySql,PHP)server to make it easy for you. Download first WAMP installer. If you are not confident installing it, you can find installation guide here http://www.eacomm.com/support/manuals/wamp_install/index.html
Installed Finish and Ready to start :
There’s only one essential concept that you need to get into your mind around before we proceed further. Unlike CGI scripts, which require you to write code to output HTML, PHP lets you embed PHP code in regular HTML pages, and execute the embedded PHP code when the page is requested.
These embedded PHP commands are enclosed within special start and end tags, like this:
< ?php ...Your PHP code here... ?>
Open your favorite Text Editor: Like Notepad++ Editor, Crimson Editor or Adobe Dreamweaver.
Here is the example to combine your HTML and PHP for the first time:
<html> <head> </head> <body> Hello World, lucky to start learning PHP here <br /> < ?php /*This is your first PHP Code*/ echo "Practiced me and I will show you how powerful I am."; ?> </body> </html>
Save the above script to a location under your wamp installation directory under WWW folder and save it on .php file extension. “Like beginner.php”
Now open your favorite browser and be sure that your wampserver was already started. Type this on your address bar
http://localhost/beginner.php –beginner.php is your filename or whatever your filename is
See the result? the output will be like this:
Hello World, lucky to start learning PHP here
Practiced me and I will show you how powerful I am.
Now you have learned a little bit on php.
You can leave a response, or trackback from your own site.
thank you…
Fantastic website, keep me through searching it, I am greatly interested to know another recommendation of it.
Hey, very nice website. I actually came across this on Bing, and I am happy I did. I will definately be coming back here more often. Wish I could add to the conversation and bring a bit more to the table, but am just absorbing as much info as I can at the moment. Thank You
It’s excellent to see sites with yahoo and thanks for the share that you’ve given. Commonly, I’m really amazed, but etc…
I love this blog. Surprisingly I told myself I should be trying to commence one similar to this as well, but not computer gifted on how to do it. What is this “WordPress” thing? Is it easy to learn? Is it necessary to be well versed in computers to set up a blog? I am hoping to hammer together a simple blog for my (Free) corrected essays free website. Can the functions be meshed into an existing website?
Hey man, was just browsing by means of the world wide web searching for some information on this and came across your blog. I am very impressed by the info that you just have here. It shows how well you comprehend this. Bookmarked this page for further reading, will come back for more. btw,do you have any suggestions for weight loss options for children?
Good blog. I got a lot of good data. I?ve been keeping an eye on this technology for awhile. It?s interesting how it keeps shifting, yet some of the core components stay the same.
Pretty nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!
What a great idea. Thanks alot.
Thank you for sharing this! I found a few interesting sites here
The more sites I visit the more I realize that most of them don’t live up to their promise, but this one is different. I love it.
This is a great resource, I think it would benefit any company that uses this for its employees, as well as individuals. I don’t agree with some of the points however.
Its very informative and interesting article.all the points are very useful. Simple but very effective writing. Thanks for sharing such a nice post.
wow, nice post, I was wondering how to cure acne naturally. and found your site by yahoo, many userful stuff here, now i have got some idea. I’ve bookmark your site and also add rss. keep us updated.
You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and very broad for me. I am looking forward for your next post.
thanks for the post. I am very happy to read this post. . . . .
Very useful informations about these subject. I have found them with googling and you seems number one of these subjects ! . . .
Nice site, I just dugg this keep up the good work!. . . . . .
good info !
This is useful for my assignment. Thanks you
Thanks for that I will be bearing this in mind on my next project.
Pin my tail and call me a doenky, that really helped.
I’m raelly into it, thanks for this great stuff!
hi .. nice posting ..
I’m assuming that I can never fully grasp php.
I would have to state, you plucked ur words well. The information you gave are well placed.
nice post. thanks.
Interesting and real really true. Bookmarked.
Thanks for the information provided! I was looking for this information for quite some time, but I wasn’t able to see a dependable source.
This is my problem…
Superb webpage, I like how your page looks! The layout is amazing!…
Nice post. I was checking continuously this blog and I’m impressed! Extremely useful information particularly the last part
I care for such information much. I was seeking this certain information for a very long time. Thank you and best of luck….