Teaching yourself PHP for idiots

Reply

Join Date: Dec 2006
Posts: 48
Reputation: woocha is an unknown quantity at this point 
Solved Threads: 0
woocha's Avatar
woocha woocha is offline Offline
Light Poster

Teaching yourself PHP for idiots

 
0
  #1
Aug 8th, 2007
I have been studying PHP part time off and on for a month or so and I get it a little, but I really want to know how to build software and I am pretty much the world's most novice programmer.

Does anyone out there know of the best free way to learn PHP in a pratical environment. Please do not point me to php.net...i really can't navigate to well there. Anything else would be very much appreciated.
FREE Online Auctions At:
http://www.woocha.com/auctions
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 70
Reputation: jamshid is an unknown quantity at this point 
Solved Threads: 0
jamshid's Avatar
jamshid jamshid is offline Offline
Junior Poster in Training

Re: Teaching yourself PHP for idiots

 
0
  #2
Aug 8th, 2007
Have a Book and try to understand the examples, then work for a project in PHP, for example a website etc..
Impossible is Nothing
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 4
Reputation: Sabia is an unknown quantity at this point 
Solved Threads: 1
Sabia's Avatar
Sabia Sabia is offline Offline
Newbie Poster

Re: Teaching yourself PHP for idiots

 
0
  #3
Aug 9th, 2007
hmmm, I started out with trying to understand existing code and doing small modifications to existing apps. The best way to learn in my opinion to challenge yourself with a small application. Try to build a simple web form that has a simple login page. Let the page on a successful login, take you to another page that prints out a message.

Then you can build from there. There are lots of good tutorials that are based around small web apps (shopping carts, guest books etc).

That gets you involved with lots of different aspects of php and seeing how they come together.

A good website to check out is phpfreaks.com (as far as project style tutorials go)

Good luck!
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 70
Reputation: jamshid is an unknown quantity at this point 
Solved Threads: 0
jamshid's Avatar
jamshid jamshid is offline Offline
Junior Poster in Training

Re: Teaching yourself PHP for idiots

 
0
  #4
Aug 9th, 2007
Originally Posted by Sabia View Post
hmmm, I started out with trying to understand existing code and doing small modifications to existing apps. The best way to learn in my opinion to challenge yourself with a small application. Try to build a simple web form that has a simple login page. Let the page on a successful login, take you to another page that prints out a message.

Then you can build from there. There are lots of good tutorials that are based around small web apps (shopping carts, guest books etc).

That gets you involved with lots of different aspects of php and seeing how they come together.

A good website to check out is phpfreaks.com (as far as project style tutorials go)

Good luck!
For Guestbook Tutorials and Some small Applications You can visit here :

http://www.programmingtutorials.org/...=PHP_and_MySQL
Impossible is Nothing
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 70
Reputation: jamshid is an unknown quantity at this point 
Solved Threads: 0
jamshid's Avatar
jamshid jamshid is offline Offline
Junior Poster in Training

Re: Teaching yourself PHP for idiots

 
0
  #5
Aug 9th, 2007
Impossible is Nothing
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 42
Reputation: cereal is an unknown quantity at this point 
Solved Threads: 4
cereal cereal is offline Offline
Light Poster

Re: Teaching yourself PHP for idiots

 
0
  #6
Aug 9th, 2007
Yep, I agree with jamshid and Sabia. To start the best thing you can do, it is trying to modify, or better, improve existing scripts. To do this, I'm sorry for you but you need to explore php.net as it is the best resource you can afford out there.

I'm still learning too, at this time I've learned how to write some code by myself, but now I need more: good basics to speed up and secure my code. It's time for books, I think, at least for me.

Last but not least: continue reading topics in this forum, you can learn a lot from users experience.

bye
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 48
Reputation: woocha is an unknown quantity at this point 
Solved Threads: 0
woocha's Avatar
woocha woocha is offline Offline
Light Poster

Re: Teaching yourself PHP for idiots

 
0
  #7
Aug 10th, 2007
for learning completely from the ground up, the examples on the site are designed for intermediate level...for example


I want to know how to reverse an array. I went to php.net http://us3.php.net/manual/en/function.array-reverse.php
and checked out the example and this is it:
  1.  
  2. <?php
  3. $input = array("php", 4.0, array("green", "red"));
  4. $result = array_reverse($input);
  5. $result_keyed = array_reverse($input, true);
  6. ?>

if this is my array, how do I reverse it:
  1. $fruits = array('apple', 'orange', 'bananna');
or if this is it:
  1.  
  2. $fruits = array('red' => 'apple',
  3. 'orange' => 'orange',
  4. 'yellow' => 'bananna');

you see the example on php.net has an array with in an array(I think?) so it throughs me off.
FREE Online Auctions At:
http://www.woocha.com/auctions
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 42
Reputation: cereal is an unknown quantity at this point 
Solved Threads: 4
cereal cereal is offline Offline
Light Poster

Re: Teaching yourself PHP for idiots

 
0
  #8
Aug 10th, 2007
Originally Posted by woocha View Post
if this is my array, how do I reverse it:
  1. $fruits = array('apple', 'orange', 'bananna');
Here you can create a new variable that contains the reversed array, once you have done simply print it:
  1. <?php
  2. $fruits = array('apple', 'orange', 'bananna');
  3. $aaa = array_reverse($fruits);
  4. $bbb = array_reverse($fruits, true);
  5.  
  6. //display results
  7. echo '<h2>Array $aaa</h2><pre><code>';
  8. print_r($aaa);
  9. echo '</code></pre>';
  10.  
  11. echo '<h2>Array $bbb</h2><pre><code>';
  12. print_r($bbb);
  13. echo '</code></pre>';
  14. ?>

Originally Posted by woocha View Post
or if this is it:
  1. $fruits = array('red' => 'apple',
  2. 'orange' => 'orange',
  3. 'yellow' => 'bananna');

you see the example on php.net has an array with in an array(I think?) so it throughs me off.
As before, just reverse $fruits:

  1. $fruit = array('red' => 'apple', 'orange' => 'orange', 'yellow' => 'bananna');
  2. $ccc = array_reverse($fruit);
  3.  
  4. //display results
  5. echo '<pre><code>';
  6. print_r($ccc);
  7. echo '</code></pre>';

Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 156
Reputation: Dsiembab is an unknown quantity at this point 
Solved Threads: 2
Dsiembab's Avatar
Dsiembab Dsiembab is offline Offline
Junior Poster

Re: Teaching yourself PHP for idiots

 
0
  #9
Aug 12th, 2007
I'm just learning myself and I found the best way was to get easyphp it puts a mock apache server and php5 and mysql on your computer it's pretty cool for learning how to use different php functions and utilize mysql database functions, plus it also shows the debugging messages, some servers have this shut off.
Another great sight is w3 schools -php tutorial or tizag - tutorials.
php.net is an awesome sight basically the manual online . With a good imagination you can do a lot with this server side script and if you have a mock server on your computer you really don't have to worry about screwing up live pages or websites. If something throws you off try different combinations you have to remember it's basically based on algebra and geometry and different math subjects. Variables and functions and classes are pretty much a hierarchy listing.
I say it's like math because before I write a script I start with a word problem and a possible solution. You can also use the I.P.D.E. ( Interpret, Predict, Decide, Execute ) method I write the word problem out and I look for certain things in this word problem, like certain constants and certain variables and if I look close enough I'll find different functions to incorporate into a solution, some functions are already in php and some have to be made.
Going to other websites and looking at the scripts and descriptions also helps too.
You can also check out O'Reilly's books they're pretty good and you can find used ones pretty cheap.
current personal projects The H8ers Club
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 48
Reputation: woocha is an unknown quantity at this point 
Solved Threads: 0
woocha's Avatar
woocha woocha is offline Offline
Light Poster

Re: Teaching yourself PHP for idiots

 
0
  #10
Aug 12th, 2007
Yeah...thanks for the tip...I run WAMP on my desktop instead of easyphp. I also run phpdesigner 2007 (bought it for like 35. pretty cool i think) There is another app for php coding called jedit.....I hear its pretty cool as well, and I believe it is FREE
FREE Online Auctions At:
http://www.woocha.com/auctions
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC