hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Learning PHP
Reply

Forum Jump

Learning PHP

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-17-2006, 04:49 PM
Kemik Kemik is offline
Web Hosting Master
 
Join Date: Oct 2005
Location: Widnes, England
Posts: 593

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.

__________________
Sean


Last edited by Kemik; 02-17-2006 at 05:04 PM.


Sponsored Links
  #2  
Old 02-17-2006, 04:52 PM
Dan L Dan L is offline
Web Developer
 
Join Date: Feb 2003
Location: Connecticut
Posts: 5,441
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.

  #3  
Old 02-17-2006, 06:14 PM
writespeak writespeak is offline
Community Leader
 
Join Date: Jun 2004
Location: North of some border
Posts: 5,492
Moved to Programming.

Lois

__________________
Wanna wiki? Check out WHT's web hosting wiki.

Do you have a WHT question or concern? Please open a helpdesk ticket.

Sponsored Links
  #4  
Old 02-17-2006, 06:22 PM
innova innova is offline
Web Hosting Master
 
Join Date: Dec 2002
Posts: 1,300
Quote:
To-Do List - Like a project to do list. Who needs to do what, where.
This is a perfect first project actually - I did this when I first started as well.

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"

  #5  
Old 02-17-2006, 07:07 PM
Kemik Kemik is offline
Web Hosting Master
 
Join Date: Oct 2005
Location: Widnes, England
Posts: 593
So keep the website based around a template? So the script is eaily to intergrate into other sites?

__________________
Sean

  #6  
Old 02-17-2006, 08:05 PM
innova innova is offline
Web Hosting Master
 
Join Date: Dec 2002
Posts: 1,300
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
?>
Or this, which is slightly better, but still bad form:
PHP Code:
<?php
$var1
=bleh;
?>

<html>
<head>
<body>

<?php
//more php code
?>
Basically, it will allow you to keep all of your code kept nicely away from your presentation, like which colors your alternating table rows are.

__________________
"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"

  #7  
Old 02-18-2006, 09:45 AM
Koolaid1551 Koolaid1551 is offline
New 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.
  #8  
Old 02-18-2006, 10:30 AM
deuce868 deuce868 is offline
Junior 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.

  #9  
Old 02-18-2006, 10:31 AM
Koolaid1551 Koolaid1551 is offline
New 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.

  #10  
Old 02-18-2006, 11:29 AM
Jimerson Jimerson is offline
Retired Moderator
 
Join Date: Feb 2005
Location: Delaware
Posts: 581
Koolaid. Not my post but thanks for a nice site

  #11  
Old 02-18-2006, 02:32 PM
Kemik Kemik is offline
Web Hosting Master
 
Join Date: Oct 2005
Location: Widnes, England
Posts: 593
Can anyone recommend a good PHP book? I'm looking at Amazon.

__________________
Sean

  #12  
Old 02-18-2006, 03:59 PM
seodevhead seodevhead is offline
Web 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.

  #13  
Old 02-18-2006, 07:51 PM
Koolaid1551 Koolaid1551 is offline
New Member
 
Join Date: Feb 2006
Posts: 4
Quote:
Originally Posted by Jimerson
Koolaid. Not my post but thanks for a nice site
you are very welcome

  #14  
Old 02-18-2006, 08:08 PM
ayksolutions ayksolutions is online now
Web Hosting Master
 
Join Date: Sep 2005
Location: Albany, NY
Posts: 3,466
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 - 11+ Global Locations in LA, Phoenix, Denver, Dallas, Chicago, Atlanta, NYC, Europe & more
From Shared to Dedicated - 100TB/1Gbps/10Gbps plans, Cloud Servers, Colo & VPS available in US and EU - Optimized for Minecraft and Social/High Traffic Websites. DDOS Protection Now Available! Current Specials
Professional. Painless. Polite. All Managed.
- Like Us on Facebook.

  #15  
Old 02-18-2006, 08:23 PM
Kemik Kemik is offline
Web Hosting Master
 
Join Date: Oct 2005
Location: Widnes, England
Posts: 593
I was looking at Larry Ullman's book. I'll proberly order it tomorrow then

__________________
Sean

Reply

Related posts from TheWhir.com
Title Type Date Posted
Microsoft Azure to Offer Cloud-Based Machine Learning Web Hosting News 2014-06-16 15:30:05
Microsoft Office 365 Updates Use Machine-Learning to Customize User Experience Web Hosting News 2014-03-03 14:41:39
SMB Nation Tech Tour Toronto 2014 Web Hosting Events 2014-02-07 14:53:23
Cloud Mindshare: Offering Neural Networks as a Service Web Hosting News 2014-05-09 12:40:17
Rackspace Launches OpenStack e-Learning Course for On-Demand Training Web Hosting News 2013-09-25 17:10:12


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?