Results 1 to 20 of 20
Thread: Learning PHP
-
02-17-2006, 04:49 PM #1Web Hosting Master
- Join Date
- Oct 2005
- Location
- Widnes, England
- Posts
- 595
Learning PHP
Hello all,
I've decided to sit down and learn PHP. I would have started earlier but I never know where to start when creating anything. I'm used to coding in VB, which is easy as you start with a form and add the code.
I'm trying to think of ideas for a first project. Here's mine so far:
- Ticket System - Having a login for users would depend on difficulty.
- To-Do List - Like a project to do list. Who needs to do what, where.
- Broswer based game - User clicks a link and adds a guy to his army. Ca use the army to fight with others.
Which do you thinks easiest or most fulfilling? Do you have any other suggestions or project ideas?
Any advise for starting to learn PHP?
Any project I make will be free for other users to use, and I would keep the project going with new releases, bug fixes, etc. I've always wanted to make a project a community would like to use, to receive some feedback from an end product would be a great thrill.
I'm not a complete novice at this. I can fix simple php code errors and as stated previously, I work with Visual Basic at college.
Thanks for all your help guys!
EDIT: I'm obviously going to create a base, simple version of the project first. Then add to it and bug test it. I'd make sure it was as bug free as possible before releasing it.
EDIT 2: Sorry for wrong forum. I guess it should be in Web Design & Content.Last edited by Kemik; 02-17-2006 at 05:04 PM.
Sean
-
02-17-2006, 04:52 PM #2Web Developer
- Join Date
- Feb 2003
- Location
- Connecticut
- Posts
- 5,460
Wrong forum.
Personally I would not make a community project until you've properly learned PHP. I've seen far too many "free" scripts, that are actually "please hack me" scripts.
A to-do list would be best.
Start off with a member system.
Members sign in and see their to-do list. Let them add, edit, or remove items.
Once you do that, let them sort and search items, categorize them, et cetera.
The ticket system would be a good step up from the to-do list, and the browser based game should be put on hold for a while.
-
02-17-2006, 06:14 PM #3
Moved to Programming.
Lois█ "Do what you can, where you are, with what you have." – Theodore Roosevelt █
-
02-17-2006, 06:22 PM #4Web Hosting Master
- Join Date
- Dec 2002
- Posts
- 1,304
To-Do List - Like a project to do list. Who needs to do what, where.
Here's my suggested progression:
-Start really simple with a one-file script that POST's to itself and uses a flatfile for storage.
-Modify this to use a database for storage instead
-Think about separating the data fetching from the data presentation (ie, use templates)
-Add in user registration / authentication with sessions and cookies
-Build in file uploading/display, import/exporting data to a variety of formats (PDF, CSV, XML)
-Build an administrative interface for handling user registration requests, changing the look and feel, etc.
-Explore GD / JPGraph and add Gantt charts and other pertinent visuals
-Experiment with AJAX - this is a perfect application of the technology (use it to enhance forms)
-Take the code you have created and make usable classes/components out of it that can be reused in other projects.
It was a great project for me (and its still evolving).. It will teach you a lot of different aspects of development and it is a logical progression for building web apps. One thing that would have greatly helped me is to get to step 3 a lot sooner. Once you see how much more efficiently you can work when you separate presentation from business logic you will move forward much faster."The only difference between a poor person and a rich person is what they do in their spare time."
"If youth is wasted on the young, then retirement is wasted on the old"
-
02-17-2006, 07:07 PM #5Web Hosting Master
- Join Date
- Oct 2005
- Location
- Widnes, England
- Posts
- 595
So keep the website based around a template? So the script is eaily to intergrate into other sites?
Sean
-
02-17-2006, 08:05 PM #6Web Hosting Master
- Join Date
- Dec 2002
- Posts
- 1,304
That may be a nice side-effect, but its not the main purpose.
The main purpose is to avoid this:PHP Code:<?php
$var1=bleh;
echo '<html>';
echo '<head>';
echo '<body>';
//more code
?>
PHP Code:<?php
$var1=bleh;
?>
<html>
<head>
<body>
<?php
//more php code
?>"The only difference between a poor person and a rich person is what they do in their spare time."
"If youth is wasted on the young, then retirement is wasted on the old"
-
02-18-2006, 09:45 AM #7New Member
- Join Date
- Feb 2006
- Posts
- 4
got to htmlite.com . they have a very good site if your are just learning the basics.
Last edited by Koolaid1551; 02-18-2006 at 09:48 AM.
-
02-18-2006, 10:30 AM #8Junior Guru
- Join Date
- Jan 2003
- Location
- MI
- Posts
- 229
I would suggest getting a good book that walks you through a project and actually walk through it entirely. Many good books will go through security concerns and such.
-
02-18-2006, 10:31 AM #9New Member
- Join Date
- Feb 2006
- Posts
- 4
ya books are good but before u get a book u need to understand the basics and not many books have done a good job about that.
-
02-18-2006, 11:29 AM #10Retired Moderator
- Join Date
- Feb 2005
- Location
- Delaware
- Posts
- 587
Koolaid. Not my post but thanks for a nice site
-
02-18-2006, 02:32 PM #11Web Hosting Master
- Join Date
- Oct 2005
- Location
- Widnes, England
- Posts
- 595
Can anyone recommend a good PHP book? I'm looking at Amazon.
Sean
-
02-18-2006, 03:59 PM #12Web Hosting Evangelist
- Join Date
- Aug 2005
- Location
- EIB Network
- Posts
- 474
BY GOD... IF THIS IS THE LAST BOOK YOU BUY.. YOU MUST BUY THIS BOOK:
PHP and MySQL For Dynamic Websites by Larry Ullman.
I will tell you right now, there is not a better "starter" php/mysql book than this one. There are so many bad books/tutorials out there that mess people up BAD. This book is a godsend and I hope that you trust me, because I was once like you with the same purpose for development, to buy this book and read it through. After you read this book, everything else that you want to learn after will be easy as cake because you have a solid understanding of not only the code, but the design strategies that real-world examples of things we all want to do.People train run out of Stubville.
-
02-18-2006, 07:51 PM #13New Member
- Join Date
- Feb 2006
- Posts
- 4
Originally Posted by Jimerson
-
02-18-2006, 08:08 PM #14Web Hosting Master
- Join Date
- Sep 2005
- Location
- Albany, NY
- Posts
- 3,956
I would also suggest getting a book. I have used Wrox PHP 4 book with great success. It is a thick one, but easy to read with great examples.
AYKsolutions.com - High Bandwidth Specialists - 10Gbps/20Gbps+ Unmetered & DDOS Protected
Over 20+ Global Locations - Asia (Hong Kong, Singapore, Tokyo), Mexico, Brazil, India, Australia, US, CA, EU - Bare Metal and Virtual Cloud. All Managed.
We are Professional. Painless. Polite.
-
02-18-2006, 08:23 PM #15Web Hosting Master
- Join Date
- Oct 2005
- Location
- Widnes, England
- Posts
- 595
I was looking at Larry Ullman's book. I'll proberly order it tomorrow then
Sean
-
02-18-2006, 10:17 PM #16WHT Addict
- Join Date
- Sep 2004
- Posts
- 130
Never read any PHP books
-
02-19-2006, 12:47 AM #17Web Hosting Evangelist
- Join Date
- Aug 2005
- Location
- EIB Network
- Posts
- 474
Originally Posted by KemikPeople train run out of Stubville.
-
02-19-2006, 12:45 PM #18Web Hosting Guru
- Join Date
- Feb 2003
- Location
- L.A. C.A.
- Posts
- 346
When I first learnt PHP I used Sams Teach Yourself PHP in 24 hours whilst looking at the tutorials for PHP listed on http://www.hotscripts.com/PHP/.
Within weeks I was writing scripts and improving my techniques; developing guestbooks, gallerys, contact forms etc.
You learn alot about coding from analyzing other peoples, download scripts you like and analyze how they work; its what students in security etc do to find flaws.WLKNS.co - A collection of my programmer thoughts
-
02-20-2006, 04:17 AM #19Newbie
- Join Date
- Feb 2006
- Location
- Shanghai China
- Posts
- 6
May be to to list is so easy.
I want to learn php too.
-
02-20-2006, 08:42 AM #20WHT Addict
- Join Date
- Feb 2006
- Location
- UK, England
- Posts
- 136
Originally Posted by hatoyu
The code can get complex and I agree with others, it will help you learn a considerable amount. You can move onto OOP in PHP and even other languages such as JavaScript to improve the interface.
Learning more than one language at a time helped me personally (You may want to consider this). I started with PHP and not long after decided I wanted to play with JavaScript. Doing this helped (and still does help) me grasp concepts from both languages."Sad, small, sweet so delicate, We used to be this dyeing breed" -- Taking Back Sunday - A Decade Under the Influence
"If we cut out the bad, well then we'd have nothing left" -- The Used - Cut Up Angels