TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-21-2008, 03:38 PM   #1 (permalink)
The Wanderer
 
richardm's Avatar
 
Join Date: Feb 2008
Location: Kingston Upon Hull
Posts: 10
Thanks: 8
richardm is on a distinguished road
Smile I Know Nothing, But I'm Willing To Learn.

To be honest I know nothing of where to start with PHP, I've seen it and know how to use PHP applications, where do I go from here?

I know it sounds silly, but I've used google to try and find resources, but there are just too many, could anyone suggest a good way to get into learning PHP?

Many Thanks

Richard
richardm is offline  
Reply With Quote
Old 02-21-2008, 03:49 PM   #2 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Do you even have a server to run your php on? If so, here are some good resources

PHP Tutorial - Introduction
PHP: Hypertext Preprocessor (for reference)
I have some tutorials on my site, Programming Tips

This is a really good book for php
Amazon.com: PHP 5 in Easy Steps (In Easy Steps): Books: Mike McGrath

For anything else, google is your friend. There will be tons of resources out there, most of them should do the job.
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
richardm (02-21-2008)
Old 02-21-2008, 03:52 PM   #3 (permalink)
The Wanderer
 
richardm's Avatar
 
Join Date: Feb 2008
Location: Kingston Upon Hull
Posts: 10
Thanks: 8
richardm is on a distinguished road
Default

I do have the server and thanks for the links. I'll give them a view.
richardm is offline  
Reply With Quote
Old 02-21-2008, 03:53 PM   #4 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

W3Schools have a nice overview of what PHP is and what it can do. Zend also have a nice but more in-depth article about getting to grips with PHP.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
richardm (02-21-2008)
Old 02-21-2008, 05:27 PM   #5 (permalink)
The Wanderer
 
Join Date: Feb 2008
Posts: 9
Thanks: 1
NathanH is on a distinguished road
Default

The way I have learnt my limited amount so far :P is by finding php code (in scripts, on websites, @ php.net etc) then copying it out, then understanding what it means .. I don't want to know that it does something just because you said it does, I want to know what it means when I'm typing it. I find it easier to learn & remember if you know what you're doing.

So, look/copy, then understand, then re-read it. Then I'll start fiddling with it, breaking it apart, adding on what I have learnt trying to get it to work. Even editing one line could screw the script up completely, so I make sure that there is a backup.

Basically, I think the best way to learn (from my limited experience), is to get your hands on any sort of code and try editing it and generally making a mess *grin*.

Anyway, I'm usually always around so if you want a hand with something or need someone who is still learning then a PM would be great :)
NathanH is offline  
Reply With Quote
The Following User Says Thank You to NathanH For This Useful Post:
richardm (02-21-2008)
Old 02-21-2008, 05:38 PM   #6 (permalink)
The Wanderer
 
richardm's Avatar
 
Join Date: Feb 2008
Location: Kingston Upon Hull
Posts: 10
Thanks: 8
richardm is on a distinguished road
Default

Thanks for the information, i have a application, which i've been looking at, this script doesn't work as it has too much code and from someone else who had looked at it, they said it was poorly written.

I wanted to learn PHP to try and get it working, but i'll give it a try and it doesn't matter if i mess it up, it doesn't work anyway.

Thanks for your help.

richardm is offline  
Reply With Quote
Old 02-25-2008, 12:14 AM   #7 (permalink)
The Contributor
 
abiko's Avatar
 
Join Date: Feb 2008
Location: Croatia
Posts: 90
Thanks: 4
abiko is on a distinguished road
Default

Learning PHP is great if you have a script you want to write.
I started with a simple shoutbox example and went to my own CMS. Fun time :)
First learn all the functions and procedural programming and then take the bold step and go Object Oriented :)
Just don't give up if you try to find bug for 2,5 hours. :)
Send a message via ICQ to abiko Send a message via MSN to abiko
abiko is offline  
Reply With Quote
The Following User Says Thank You to abiko For This Useful Post:
richardm (02-25-2008)
Old 02-25-2008, 01:18 AM   #8 (permalink)
The Addict
 
Join Date: Nov 2007
Posts: 264
Thanks: 2
TlcAndres is on a distinguished road
Default

Maybe it's just me, but OO isn't all that hard, the terminology is what gets people - Anywho, as Abiko said it's very important to learn all the built in functions and then some.
TlcAndres is offline  
Reply With Quote
The Following User Says Thank You to TlcAndres For This Useful Post:
richardm (02-25-2008)
Old 02-25-2008, 01:29 AM   #9 (permalink)
The Contributor
 
abiko's Avatar
 
Join Date: Feb 2008
Location: Croatia
Posts: 90
Thanks: 4
abiko is on a distinguished road
Default

You first must know how to crawl to walk (procedural -> OOP) :)
I mean OOP's functions are procedural.. :) some.
When you go to OOP you'll see how it is easier.
And - download the PHP Manual - you new Bible :)
Send a message via ICQ to abiko Send a message via MSN to abiko
abiko is offline  
Reply With Quote
The Following User Says Thank You to abiko For This Useful Post:
richardm (02-25-2008)
Old 02-25-2008, 09:25 AM   #10 (permalink)
The Wanderer
 
richardm's Avatar
 
Join Date: Feb 2008
Location: Kingston Upon Hull
Posts: 10
Thanks: 8
richardm is on a distinguished road
Default

I'm just in the process of creating my first discussion board. It will only be simple and nothing along the lines of PHPBB or the invision power board, but i'm hoping to build from there.

Thanks for your advice.
richardm is offline  
Reply With Quote
Old 02-25-2008, 09:38 AM   #11 (permalink)
The Addict
Upcoming Programmer Top Contributor 
 
Rendair's Avatar
 
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
Rendair is on a distinguished road
Default

Quote:
Originally Posted by richardm View Post
I'm just in the process of creating my first discussion board. It will only be simple and nothing along the lines of PHPBB or the invision power board, but i'm hoping to build from there.

Thanks for your advice.
Building Forums is always fun iv done it many times lol i always enjoy it even if you do sometimes rip ya hair out.
__________________
www.jooney.co.uk - the online portfolio
Send a message via MSN to Rendair
Rendair is offline  
Reply With Quote
Old 02-25-2008, 09:51 AM   #12 (permalink)
The Wanderer
 
richardm's Avatar
 
Join Date: Feb 2008
Location: Kingston Upon Hull
Posts: 10
Thanks: 8
richardm is on a distinguished road
Default

It is fun, i'm enjoying the learning process.

For this project in the end i want to be able to load widgets and modules, etc so it it fully mod capable.

But i'm a fair way away from that.

At the moment i'm doing this for me, but it will be good to see what i can do.
richardm is offline  
Reply With Quote
Old 02-25-2008, 01:37 PM   #13 (permalink)
The Contributor
 
abiko's Avatar
 
Join Date: Feb 2008
Location: Croatia
Posts: 90
Thanks: 4
abiko is on a distinguished road
Default

Firstly learn how to work with the database (MySQL, SQLite etc..) - cause they're best friends from now on.
When you got that in your hat, then read some articles about security, how to secure your queries, log in securtiy ( watch your input field maxchars and allowed chars and check the - XSS is a .. nasty thing :) ).

When you become skilled enough to know what is the code of another programmer is doing - and you see the flaws/brilliance in it - great!

Also you can try out some Frameworks ( Zend, Cake or maybe RoR (Ruby) or Django (Python) ).
Frrameworks have the leverage of having the foundation for your application (DB Abstraction, user managment/access rights (permissions) and various other neat classes (e.g. Zend's Flickr, Amazon etc. ).
I support frameworks (if they have a string community behind them) and not-so-complicated learning curve.

Another thing you could ask yourself: Do I need templates?
I've worked with few of them (Smarty, patTemplate and phpLib or its clone xTemplate (bTemplate) )- and they are helpful if you want your code seperated from the design.
If I had to recommend a templating engine to you I would go - phpLib (bTemplate, xTemplate).
__________________
Back from sysadmins to the programmers.
Send a message via ICQ to abiko Send a message via MSN to abiko
abiko is offline  
Reply With Quote
Old 02-25-2008, 03:47 PM   #14 (permalink)
The Wanderer
 
richardm's Avatar
 
Join Date: Feb 2008
Location: Kingston Upon Hull
Posts: 10
Thanks: 8
richardm is on a distinguished road
Default

I think i will want it to be able to have different templates.

I think i will do a lot of reading on security, at the moment i'm writing my php files and sql files from sample code and hope to build from there.

I've heard of a few of those templates, my knowledge of working with templates is those of Joomla! & PHPBB, and that's just installing them.

As for widget/modules i was thinking of a sidebar similat to Wordpress.

I'm always thinking ahead, but i think i'm quite away from modules and templates, i think just getting my disccussion board looking the way i want it is one of my priorities.

I will be doing some of the frameworks mentioned, i've heard of python as the original bittorrent client is written in that.

I should be grasping what i'm learning soon. But i shall not be rushing.
richardm is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:25 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design