Author Topic: Noob proof PHP tutorial part 1/3  (Read 7611 times)

0 Members and 1 Guest are viewing this topic.

Offline relax

  • Sir
  • ***
  • Posts: 562
  • Cookies: 114
  • The one and only
    • View Profile
Noob proof PHP tutorial part 1/3
« on: February 10, 2013, 10:42:40 am »
So I haven't contributed at all the last couple of months
and had no idea of what to do :/
I got a suggestion some time ago to make a noob friendly ruby tutorial.
but lets be honest i don't know shit about ruby and tbh I don't really
feel like that's something I want to spend my time on ATM.
So I decided I should make a PHP tutorial instead, this is at least
something I know some about :P

If you know PHP from before this is nothing for you, wait util part 3

This series will be 3 parts.
1. noob friendly start, very basic
2. some good things to know (not really sure yet but at the very least MySQL)
3. more advanced stuff (was thinking security here from part 1 and 2)
(might do a bonus part with some fun and advanced stuff like suppression)

Here's the thing I might warn you right away so you know it before you start...
English is not my native language

Also I would love feedback on: stuff I have forgot/made wrong/should have etc
that actually suites the current chapter e.g. I'm not going to
take up ternary operators or regex in part one
but feel free to comment what should be in the coming parts

Sooo....
Here it goes :P

get Apache and php on windows with
wamp - Windows
lamp   - Linux

--------->> PHP Noob proof tutorial part 1/3 link <<---------


ps: yeah i have my weird humor in it >.>

Offline M3ATSHI3LD

  • NULL
  • Posts: 2
  • Cookies: -1
    • View Profile
Re: Noob proof PHP tutorial part 1/3
« Reply #1 on: February 11, 2013, 04:32:42 pm »
One thing I notice is that you are not using curly brackets in your if () {} else {} statements. While leaving out the curly brackets is an allowable syntax, in PHP it is considered bad form. I do understand you address that it is not 'needed', but there are certain things that should not be taught in relation to PHP. Leaving out the curly brackets leads to errors and readability issues.


Other than that issue, great introduction to PHP!

Offline silenthunder

  • Royal Highness
  • ****
  • Posts: 700
  • Cookies: 23
  • Anpan.
    • View Profile
Re: Noob proof PHP tutorial part 1/3
« Reply #2 on: February 11, 2013, 06:00:01 pm »
One thing I notice is that you are not using curly brackets in your if () {} else {} statements. While leaving out the curly brackets is an allowable syntax, in PHP it is considered bad form. I do understand you address that it is not 'needed', but there are certain things that should not be taught in relation to PHP. Leaving out the curly brackets leads to errors and readability issues.


Other than that issue, great introduction to PHP!

They're called parenthesis.. and go introduce yourself.

Really a great tutorial, I love that you wrote the tutorial itself in PHP.
 
EDIT: Also, I noticed some grammatical issues in the comments, but it doesn't make it unreadable.
 
EDIT 2: Noob-proof my ass. This is gonna take me forever to finally get downD: but at least I'm willing to do it.
« Last Edit: February 11, 2013, 06:08:01 pm by silenthunder »


"Hacking is a lifestyle, a specific mindset, and it really is a lot of work." - Daemon

"Just wanted to state that this is just wicked social engineering at its best." - proxx

Offline relax

  • Sir
  • ***
  • Posts: 562
  • Cookies: 114
  • The one and only
    • View Profile
Re: Noob proof PHP tutorial part 1/3
« Reply #3 on: February 11, 2013, 07:55:47 pm »

One thing I notice is that you are not using curly brackets in your if () {} else {} statements. While leaving out the curly brackets is an allowable syntax, in PHP it is considered bad form. I do understand you address that it is not 'needed', but there are certain things that should not be taught in relation to PHP. Leaving out the curly brackets leads to errors and readability issues.


Other than that issue, great introduction to PHP!
It's really how you prefer it yourself everything can lead to error if not done correctly, I prefer leaving them out others don't doesn't really matter imo, but thanks for your input :)

They're called parenthesis.. and go introduce yourself.

Really a great tutorial, I love that you wrote the tutorial itself in PHP.
 
EDIT: Also, I noticed some grammatical issues in the comments, but it doesn't make it unreadable.
 
EDIT 2: Noob-proof my ass. This is gonna take me forever to finally get downD: but at least I'm willing to do it.

They are in fact called Braces or curly brackets :P

Yeah there might be some grammatical errors as stated English
is not my native language and I tried to fix them, but not all apparently :P


I tryied to make it as easy as possible and have different situations, but it is the beginning in PHP and most easy commands, if there's any confusion let me know :)


Thanks for your comments :)

Offline M3ATSHI3LD

  • NULL
  • Posts: 2
  • Cookies: -1
    • View Profile
Re: Noob proof PHP tutorial part 1/3
« Reply #4 on: February 16, 2013, 09:11:29 pm »
They're called parenthesis.. and go introduce yourself.


I didn't realize that an introduction was a requirement. Got a link to the rule stating such?


I would also like to thank you for correcting me on the proper term for braces or curly braces. I guess I should now start calling them parenthesis so everyone that knows what parenthesis are will then tell me that curly braces are not parenthesis. I give you an A+ on making incorrect statements!

Offline 4ntis3c

  • /dev/null
  • *
  • Posts: 8
  • Cookies: 1
    • View Profile
Re: Noob proof PHP tutorial part 1/3
« Reply #5 on: February 21, 2013, 11:31:58 pm »
ragers... --'
and thx for the tutorial :) can't wait for part 2 and 3! :)

Offline cr0n0s

  • /dev/null
  • *
  • Posts: 18
  • Cookies: -1
    • View Profile
Re: Noob proof PHP tutorial part 1/3
« Reply #6 on: February 22, 2013, 11:57:04 am »
A nice tut but don't you think you should have written about the language and the requirements for php. And also you wrote many things in the starting, so I personally don't think its a better idea to put so much in the first tut. :D

Offline relax

  • Sir
  • ***
  • Posts: 562
  • Cookies: 114
  • The one and only
    • View Profile
Re: Noob proof PHP tutorial part 1/3
« Reply #7 on: February 22, 2013, 11:17:26 pm »
A nice tut but don't you think you should have written about the language and the requirements for php. And also you wrote many things in the starting, so I personally don't think its a better idea to put so much in the first tut. :D


well I'm hoping people that wants to start with php know why they want to start with php, and tbh that stuff is boring its more fun jumping right in to coding imo. but yeah maybe i should have :/


also I don't think i put too much in the first tutorial, I think this is the amount you need to know before going to post/get/sessions/cookies/functions/classes etc
there will only be 3 (max 4) tuts on this and PHP is a huge language so if you think about it it should be longer...




Offline Rastas11

  • NULL
  • Posts: 2
  • Cookies: 0
    • View Profile
Re: Noob proof PHP tutorial part 1/3
« Reply #8 on: October 18, 2013, 04:03:58 pm »
hey guys trying to learn something here...
but i really cant download your file and i feel kinda like an idiot
any help?