Jump to content
xisto Community
Sign in to follow this  
Taz

Can Anybody Show Me Php

Recommended Posts

Okay I want to learn the fastest way to learn php in the shortest time. So ca anybody here help me. I've looked at websites but they are complicated for me to understand. And its tto small.

Share this post


Link to post
Share on other sites

First thing is nobody can promise you about shortest time. But yes, you can start anyway.
1) Download XAMPP/Wamp server and properly install it.
2) Get a good books on PHP.
3) Or try some online PHP tutorials. They're faster than books.
4) Do experiment on your own.
5) Learn from other's code. Check sites like snipplr or google code search.
6) Pick dummy project and do it in PHP.

These are some steps in my opinion to get you started with PHP. I hope these are some shortest and fasted but it depends how you look at them. Others will suggest you as well, wait for their comment.

And unless you come up with problem nobody can post or help you with code. Nobody starts from full code directly.

Share this post


Link to post
Share on other sites

If you are new to php, I will recoment to buy some php books in beginner level fromlocal market. When you get a good foundation on php, you may can use tutorial fromnet for your advace study

Share this post


Link to post
Share on other sites

I think the quickest way to learn PHP is to see a sample page build and just add your things and see what really happens.

My first introduction to PHP was with INCLUDE. And boy, this one command really comes in handy.

Let's say you have a page in such structure that at the top is your banner, left is your navigation and the rest is your content. You can build rest of your site using the same template (3 sections). And as each page is build you need to update your navigation to match your growing pages. Well, what happens to earlier pages? You have to go back and edit to reflect new pages you just added.

With PHP include, you can split the template into 3 pieces. First, optional, is to create header.php which includes header information, doc types and your banner. Second could be nav.php where you code all page links in LIST format. And the last page (the content) called index.php (for now).

Sample build header.php

<doctype.....><html><head>...</head>
Notice that no actual PHP codes are present.

Sample build nav.php
<ul><li><a href=" ">Page 1</li><li><a href=" ">Page 2</li></ul>
Note again, no actual PHP codes are present.

Sample build index.php
<?php
include ('header.php'); 
?>

<body>

<?php
include ('nav.php');
?>

<p>Insert contents for this index page for whatever it may be...</p>

<p>Footer</p>

</body>
</html>



And you can use index.php template for page1.php, page2.php etc.

The basic idea is that because one page can be included to another page, by allowing the first page to be stand alone for all templates, you can update 1 single page and the rest of sites will update accordingly. This was not possible with previous language.

But the true magic of PHP is, not only free, that since it's server side script programming, you can design contents that cannot be "disabled" by viewers, like javascript or other client side scriptings.

And since it's server side scripting, all works are done by powerful hosting servers.

After you get comfortable, you can move on to other PHP programmings like date(), mail(), array() and go to functions (this is where C and C++ programming skills are helpful), recursive and loop functions, global and local variables, oh joy...

Share this post


Link to post
Share on other sites

if (you_want_to_learn_php) { try { /* reading the manual */ } }

The documentation for just about any language is a really good place to start trying to learn the language. You can find the PHP manual here: http://php.net/manual/en/. It includes a quick getting started tutorial, as well. The Tizag tutorials are also nice. They're available at tizag.com.

Share this post


Link to post
Share on other sites

Or do what I did. Get some sample code for something (I'd say to some good working MMORPG). Examine the code, and test out editing it. A "hands on" approach is always better I think.

Share this post


Link to post
Share on other sites

I know that when I was trying to learn PHP quickly, I got a LOT of information from various youtube tutorials. They help a lot, step by step... you just have to have SOME patience to wait for them to explain to you step by step etc. It helped me a lot honestly.Just look up PHP tutorials and they should pop up with a bunch.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.