Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-04-2007, 10:47 AM   PM User | #1
AJW06
Regular Coder

 
Join Date: Nov 2006
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
AJW06 is an unknown quantity at this point
Learning PHP

I am reading "PHP and MySQL For Dynamic Websites" by Larry Ullman. very well written i am about quater the way through and i have a good understanding of how a script works so i can anaylse a script and know what the script is trying to do. But i thats about it, when i come to writing my own code i don't know how i can make the script do what I want it to do. Have any of you good people got any advice for me
AJW06 is offline   Reply With Quote
Old 04-04-2007, 10:52 AM   PM User | #2
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
Just practice, practice and practice. Look at example scripts/code you've got and modify them is the easiest way to learn I find. eg, a basic hello world code
PHP Code:
<?php
echo 'Hello World';
?>
can be changed to say the time, date, then add a counter to say how many times the page has been viewed, and slowly work your way up. You'll eventually pick it up and be able to find functions you need to use by google or php.net
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 04-04-2007, 03:18 PM   PM User | #3
aedrin
Senior Coder

 
Join Date: Jan 2007
Posts: 1,648
Thanks: 1
Thanked 58 Times in 54 Posts
aedrin will become famous soon enough
Quote:
when i come to writing my own code i don't know how i can make the script do what I want it to do. Have any of you good people got any advice for me
This comes from reading the book, and not doing the exercises. You have to do the exercises if you want to grasp when and what you would use.

EDIT: On a side note, I think this book is outdated and you should be looking for a PHP5 book, as there are some nice additions that are well worth the upgrade. Not to mention that some things don't work anymore, or different.

Last edited by aedrin; 04-04-2007 at 03:22 PM..
aedrin is offline   Reply With Quote
Old 04-04-2007, 03:37 PM   PM User | #4
iLLin
Regular Coder

 
Join Date: Oct 2005
Location: Right Here
Posts: 654
Thanks: 1
Thanked 0 Times in 0 Posts
iLLin is an unknown quantity at this point
Yea get the latest and greatest.
iLLin is offline   Reply With Quote
Old 04-05-2007, 08:54 AM   PM User | #5
AJW06
Regular Coder

 
Join Date: Nov 2006
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
AJW06 is an unknown quantity at this point
I have the 2nd eddition which is PHP5
AJW06 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:19 AM.


Advertisement
Log in to turn off these ads.