Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Learning Php
Sten
post Jun 7 2007, 04:33 AM
Post #1


Oh come on Mrs. B!
Group Icon

Group: Members
Posts: 648
Joined: 6-June 07
From: Tasmania, Australia
Member No.: 22,422



I have decided to start learning php as I think it is essential if you want to make a good site.
I have a book which is good for starters but it doesnt have much advanced stuff.
Would anyone happen to know a good site I can learn from?
While im on the topic, i cant get PHP to install on apache.
So i still cant use php on my computer anyway :l
Go to the top of the page
 
+Quote Post
CyberReaper
post Jun 7 2007, 05:39 PM
Post #2


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 46
Joined: 16-January 06
Member No.: 10,740



Yes I am also interested in learning PHP. Could you please reccomend a good source to get started with the basics. All i know is that you can include PHP onto your websites for increased possibilities. I have tried a couple books at the library but none of them seem to be of any help they are all to indepth to the point were i have no clue what they are talking about. Would you reccommend learning about databases before learing PHP? I am also learning more about CGI currently.
Go to the top of the page
 
+Quote Post
SilverFox
post Jun 7 2007, 11:20 PM
Post #3


Premium Member
Group Icon

Group: Members
Posts: 206
Joined: 26-February 07
From: Texas
Member No.: 20,598



Download WAMP5 (google it), it has Apache 2.4, MYSQL newest, PHP 5 and phpmyadmin.

Install WAMP5.

Start coding.

The best way to learn php is just to do it. Use the internet as a reference book for commands you don't know/understand. Start with templates/pre-made scripts and then edit them and learn.

Some tips:
Don't use $_COOKIE. Use $_SESSION. Its more secure.
Don't use $_GET or $_POST. $_REQUEST can handle both.
Don't run a Mysql query and with one variable name then assign it a new one like a lot of tutorials show, that's plain stupid.
Use good variable names, instead of $time3 make it $time_to_finish, for example.
Use Include statements.
In any input use strip_tags() and any MYSQL user based queries use addslashes() in the input. This prevent injection.
Md5 is vulnerable, therefore MD5 something about 5 times.
Comment code often using //

This post has been edited by SilverFox: Jun 7 2007, 11:21 PM
Go to the top of the page
 
+Quote Post
Sten
post Jun 8 2007, 04:03 AM
Post #4


Oh come on Mrs. B!
Group Icon

Group: Members
Posts: 648
Joined: 6-June 07
From: Tasmania, Australia
Member No.: 22,422



Learn PHP definately befor you start learning databases.
They come in later in the more advanced stuff.
I have a book right next to me actually called... "Programming in PHP" its from next handbooks. It's a little out of date (from 2005) but its probably the best thing I have ever read for learning php. The only problem is its has alot of advanced stuff but not much detail about them. www.next.com.au is their website.
Silverfox, I usually use the session one but I use post.
Go to the top of the page
 
+Quote Post
TavoxPeru
post Jun 8 2007, 10:19 PM
Post #5


Super Member
Group Icon

Group: [HOSTED]
Posts: 740
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



There are a lot of good websites to learn PHP, a few of them are:Is a good idea to download the Official PHP Manual from the PHP website and also check out the related forums here at Astahost.

Best regards,
Go to the top of the page
 
+Quote Post
Arbitrary
post Jun 8 2007, 10:59 PM
Post #6


Premium Member
Group Icon

Group: [HOSTED]
Posts: 361
Joined: 17-June 06
From: Adblock life
Member No.: 13,992



Yep, those three tutorials are the ones I've found myself using a lot.

Of course, after you get the basics from those tutorials, you should pick a project to start working on. You might try to code a simple contact form, or something like that. Then you could move on to making your own blog (the CakePHP framework works really nicely for that...once you get it, a blog can be set up in a few hours) and so on and so forth.

Good luck!
Go to the top of the page
 
+Quote Post
FirefoxRocks
post Jun 9 2007, 03:20 AM
Post #7


Super Member
Group Icon

Group: [HOSTED]
Posts: 638
Joined: 12-July 06
From: Ontario, Canada
Member No.: 14,464



I have learnt PHP through the W3Schools tutorials and found the http://www.tizag.com/phpT/echo.php tutorial mentioned above to be useful for beginners as well as advanced PHP functions.
PHP is useful for site templates (include/require) to shopping carts to major blog sites. Compared to ASP, it is free and more compatible with servers.

You need a goal when working with PHP. You could try designing a dynamically changing text/images based on input. Then move up to designing login forms. Once you can do that, try making a simple shoutbox. Without a goal, you will get frustrated and unmotivated to continue working. Don't give up.

With anything, you can learn it with time and patience.
Go to the top of the page
 
+Quote Post
TavoxPeru
post Jun 10 2007, 12:27 AM
Post #8


Super Member
Group Icon

Group: [HOSTED]
Posts: 740
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



QUOTE(Arbitrary @ Jun 8 2007, 05:59 PM) *
Yep, those three tutorials are the ones I've found myself using a lot.

Of course, after you get the basics from those tutorials, you should pick a project to start working on. You might try to code a simple contact form, or something like that. Then you could move on to making your own blog (the CakePHP framework works really nicely for that...once you get it, a blog can be set up in a few hours) and so on and so forth.

Good luck!

Some months ago i download the CakePHP framework but i can't be able to install on my PC, too much installation errors get me mad, so i left behind and forgot about it, tell me something, if you install it on your PC what PHP, MySql and Apache or IIS version you work with???
If you have the time can you please give us your opinion of this framework, do you know other frameworks???

Best regards,
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Learning Php(7)
  2. Learning How To Network?(5)
  3. Learning Css(8)
  4. Some Of My 3D Models(25)
  5. Microsoft Learning(1)
  6. Learning Programming: Which Language To Start(11)
  7. Huge Problem>> Learning Flash(3)
  8. Languages Worth Learning(21)
  9. Linux User Needs Help Learning Freebsd(7)
  10. Having Little Time For Learning(3)
  11. How Can I Start Learning Linux(12)
  12. Two Serious Learning Tools(5)
  13. Where To Start Learning Programming(16)
  14. Learning Java(0)
  15. Best Places To Start Learning PHP(7)
  1. Best Way Of Learning A Scripting Language?(6)
  2. Just Learning Perl(6)
  3. I Think A Good Programming Learning Steps Would Be...(5)
  4. How To Learn A Programming Language(0)
  5. Learning To Use The Pen Tool In Photoshop(0)
  6. Learning Php/sql Basics(17)
  7. Going To Try Learning Php(4)
  8. Learning C++(1)
  9. Good Book For Learning Xhtml & Css(2)


 



- Lo-Fi Version Time is now: 21st August 2008 - 10:03 PM