| | |
Teaching yourself PHP for idiots
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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.
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.
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!
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!
•
•
•
•
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!
http://www.programmingtutorials.org/...=PHP_and_MySQL
Impossible is Nothing
•
•
Join Date: Aug 2007
Posts: 42
Reputation:
Solved Threads: 4
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
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
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:
if this is my array, how do I reverse it:
or if this is it:
you see the example on php.net has an array with in an array(I think?) so it throughs me off.
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:
PHP Syntax (Toggle Plain Text)
<?php $input = array("php", 4.0, array("green", "red")); $result = array_reverse($input); $result_keyed = array_reverse($input, true); ?>
if this is my array, how do I reverse it:
PHP Syntax (Toggle Plain Text)
$fruits = array('apple', 'orange', 'bananna');
PHP Syntax (Toggle Plain Text)
$fruits = array('red' => 'apple', 'orange' => 'orange', 'yellow' => 'bananna');
you see the example on php.net has an array with in an array(I think?) so it throughs me off.
•
•
Join Date: Aug 2007
Posts: 42
Reputation:
Solved Threads: 4
•
•
•
•
if this is my array, how do I reverse it:
PHP Syntax (Toggle Plain Text)
$fruits = array('apple', 'orange', 'bananna');
php Syntax (Toggle Plain Text)
<?php $fruits = array('apple', 'orange', 'bananna'); $aaa = array_reverse($fruits); $bbb = array_reverse($fruits, true); //display results echo '<h2>Array $aaa</h2><pre><code>'; print_r($aaa); echo '</code></pre>'; echo '<h2>Array $bbb</h2><pre><code>'; print_r($bbb); echo '</code></pre>'; ?>
•
•
•
•
or if this is it:
PHP Syntax (Toggle Plain Text)
$fruits = array('red' => 'apple', 'orange' => 'orange', 'yellow' => 'bananna');
you see the example on php.net has an array with in an array(I think?) so it throughs me off.
php Syntax (Toggle Plain Text)
$fruit = array('red' => 'apple', 'orange' => 'orange', 'yellow' => 'bananna'); $ccc = array_reverse($fruit); //display results echo '<pre><code>'; print_r($ccc); echo '</code></pre>';
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.
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
![]() |
Similar Threads
- learning php (PHP)
- Opinions? javascript/php/etc and programming standards (JavaScript / DHTML / AJAX)
- Student Suspended for using PHP!! (IT Professionals' Lounge)
- PHP parsing error, unexpected '<' (PHP)
- How do I make bots in php? (PHP)
- Jumping into Php (PHP)
- Help with apache - htdocs? (Linux Servers and Apache)
- Accessing Online (remote) MySQL DB to modify it (MySQL)
- PHP Trainer (Paid) (PHP)
Other Threads in the PHP Forum
- Previous Thread: Any free PHP resources out there.
- Next Thread: Double MySQL Query
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





