Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2005, 08:14 PM
Razasharp's Avatar
Razasharp Razasharp is offline
 
Join Date: Feb 2005
Location: UK
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Best book to learn PHP for vB? How did YOU learn?

Hi All

I was just wondering if any of you guys have any recommendations for the best way to go about learning PHP. Particularly if the aim is to better understand vB in order to create hacks for it.

Would have to be for a complete novice as I know next to nothing of PHP!

I'd also, be interested in any other methods any of you used - online tutorials etc? If so which?

Any help appreciated.

Thanks in advance
Reply With Quote
  #2  
Old 07-10-2005, 08:26 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

www.php.net ... That's how I learned What I like about php is that they have an official site with a normal manual

Which can be found here:
http://www.php.net/manual/en/index.php
Reply With Quote
  #3  
Old 07-10-2005, 08:40 PM
Razasharp's Avatar
Razasharp Razasharp is offline
 
Join Date: Feb 2005
Location: UK
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Dark Visor...

Do you have any particular advice? For eg did you go full on read the manual? Just an idea of the path you took would be great just to give us an idea
Reply With Quote
  #4  
Old 07-10-2005, 08:43 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suggest something like SAMS PHP in 24 hours to figure out the basics, then browse through functions on php.net and other PHP files you see and learn from there.
Reply With Quote
  #5  
Old 07-10-2005, 08:49 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, of course you don't read the full manual. You cannot memorize it all at once, and nobody can...

What I did is I downloaded the *.chm version of the manual (can be found here http://www.php.net/docs.php). Then I went through the first 3 sections of it (up to features). Then I read the next two sections (up to 5th), reading only what I might need in the nearest future.

Then, I started writing my own scripts. While writing those scripts, I kept referring (and I still keep referring) to sections IV, V and VI of the manual, for the particular functions or tricks that I need to use. Like if I need to find out a certain file management function, I go to "File Management" subsection of section VI... That's how it goes - I refer to certain parts of the manual when there is a need to use them.

Quote:
I suggest something like SAMS PHP in 24 hours to figure out the basics, then browse through functions on php.net and other PHP files you see and learn from there.
Well, IMHO it is too basic... There is nothing better than an official manual if there is one, because an official manual usually also tells you about any special things that you have to pay attention to
Reply With Quote
  #6  
Old 07-10-2005, 09:09 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For not knowing any PHP or other programming languages PHP is pretty complex, but if you are coming from another language, the manual is all you need. Everyone learns at different rates.
Reply With Quote
  #7  
Old 07-10-2005, 09:21 PM
Razasharp's Avatar
Razasharp Razasharp is offline
 
Join Date: Feb 2005
Location: UK
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks both.

Thats a good point TheSpecialist. Dark Visor - how much programming did you know before you started learning php?
Reply With Quote
  #8  
Old 07-10-2005, 09:25 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Practically none... Maybe a bit of an extremely invalid HTML 4.01 and some javascript that worked only in internet exlorer When I started making dynamic pages was when I also learned valid XHTML and more javascript.

With all due respect to TheSpecialist, I would not agree with him. In my opinion (which may be wrong as well), PHP is one of the easiest languages there are. To have any trouble with it, you must either come from a completely different language such as C++ or not read a manual before trying to write your scripts.
Reply With Quote
  #9  
Old 07-10-2005, 09:36 PM
Razasharp's Avatar
Razasharp Razasharp is offline
 
Join Date: Feb 2005
Location: UK
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok last question @ Dark Visor... when did you first start learning php? (this will give us a very vague idea of ho wlong it might take to get to your level!)
Reply With Quote
  #10  
Old 07-10-2005, 09:39 PM
Guest190829
Guest
 
Posts: n/a
Default

I suggest PHP and MySQL Web Development. It's a huge book that's cut into 3 main parts. PHP/ Mysql/ Creating Major Web Applications with PHP & mySQL. Although, it covers PHP 5, it's still a great book. Even when your done reading it, it serves as a great reference too.
Reply With Quote
Reply

Thread Tools
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

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

Forum Jump


All times are GMT. The time now is 07:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04399 seconds
  • Memory Usage 2,246KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete