Results 1 to 25 of 25
  1. #1
    ABW Ambassador kse's Avatar
    Join Date
    November 29th, 2005
    Posts
    2,511
    PHP self Learning & Reference sites
    Ok, I have PHP installed on my workstation. I now want to learn PHP (I know ASP really well) so I would like to have a few suggestions on sites that are out their that I can use as reference for PHP "How To do this in PHP"

    Kevin..........
    MERCHANTS: Start showing your coupons directly on your site, that way your shoppers will stop leaving your site looking for them!! If not then remove your Coupon Box!!

  2. #2
    ABW Ambassador 2busy's Avatar
    Join Date
    January 17th, 2005
    Location
    Tropical Mountaintop
    Posts
    5,636
    I have run across many smaller sites with step by step guides, but if you aren't trying to do what they are showing they aren't much help. I have 3 reference sites bookmarked:
    http://www.php.net/manual/en/

    http://www.w3schools.com/php/default.asp

    http://forums.devshed.com/

    The w3schools site is step by step and easy.

    Hopefully others have more useful suggestions for learning.

  3. Thanks From:

  4. #3
    Analytics Dude Kevin's Avatar
    Join Date
    January 18th, 2005
    Location
    Rochester, NY
    Posts
    5,904
    The O'Brien book on "Building a PHP/MySql website" is amazing, well written, and thought provoking. Have a look at that one.
    Kevin Webster
    twitter: levelanalytics

    Kayak Fishing
    Web Analytics and Affiliate Marketing

  5. Thanks From:

  6. #4
    notary sojac Herb ԿԬ's Avatar
    Join Date
    January 18th, 2005
    Location
    Central/Western NY State
    Posts
    7,741
    I remember there being the "php cookbook" which was freely available for download. Try searching for it.

  7. Thanks From:
    kse

  8. #5
    Moderator BurgerBoy's Avatar
    Join Date
    January 18th, 2005
    Location
    jacked by sylon www.sylonddos.weebly.com
    Posts
    9,618

    Vietnam Veteran 1966-1970 USASA
    ABW Forum Rules - Advertise At ABW

  9. Thanks From:
    kse

  10. #6
    Moderator BurgerBoy's Avatar
    Join Date
    January 18th, 2005
    Location
    jacked by sylon www.sylonddos.weebly.com
    Posts
    9,618

    Vietnam Veteran 1966-1970 USASA
    ABW Forum Rules - Advertise At ABW

  11. Thanks From:
    kse

  12. #7
    ABW Veteran Mr. Sal's Avatar
    Join Date
    January 18th, 2005
    Posts
    6,795
    I now want to learn PHP
    If you want to learn the basics of PHP, check out the tizag site.

    PHP Tutorial - Learn PHP

    youtube also got some good PHP video tutorials...
    YouTube - ‪PHP Tutorial‬‏

  13. Thanks From:
    kse

  14. #8
    ABW Ambassador superCool's Avatar
    Join Date
    April 23rd, 2008
    Location
    Texas
    Posts
    1,268
    Eric Nagel posts some useful php tidbits that are specifically geared towards affiliates.... mostly datafeed stuff and some spider type things

    Eric Nagel

    if you know a technology like ASP you will have no problem at all with php. the php.net manual is usually helpful and there is sample code and user contributed code at the bottom of most pages.

  15. Thanks From:

  16. #9
    Speechless OTProf's Avatar
    Join Date
    November 4th, 2006
    Location
    Sunny SoCal
    Posts
    832
    Quote Originally Posted by Kevin View Post
    The O'Brien book on "Building a PHP/MySql website" is amazing, well written, and thought provoking. Have a look at that one.
    Are you certain of the title / author on this? (couldn't find it)

    Thx

  17. #10
    Analytics Dude Kevin's Avatar
    Join Date
    January 18th, 2005
    Location
    Rochester, NY
    Posts
    5,904
    Ooops. Got typing too fast for my brain to keep up: Amazon.com: Web Database Applications with PHP and MySQL eBook: David Lane, Hugh E. Williams: Kindle Store

    Published by O'Reilly, not O'Brian
    Last edited by Kevin; June 14th, 2011 at 08:13 AM.
    Kevin Webster
    twitter: levelanalytics

    Kayak Fishing
    Web Analytics and Affiliate Marketing

  18. #11
    Comfortably Numb John Powell's Avatar
    Join Date
    October 17th, 2005
    Location
    Bayou Country, LA
    Posts
    3,432
    I have PHP and MySQL Web Development by Welling and Thomson both second and third edition. They come with a CD if you need it.

    You might consider phpDesigner 7 which will save you a lot of time in the learning process. phpDesigner 7 - PHP Editor & PHP IDE with built-in HTML, JavaScript, CSS editor! Moderately priced and well supported. I prefer it over my Dreamweaver. Just me though.

    Edit: I haven't a clue how I got all that anchor text with that link.
    Last edited by John Powell; June 14th, 2011 at 09:41 PM. Reason: Weirdness.


  19. Thanks From:
    kse

  20. #12
    Analytics Dude Kevin's Avatar
    Join Date
    January 18th, 2005
    Location
    Rochester, NY
    Posts
    5,904
    By the way, when you're ready to start writing, download the NetBeans IDE. It's incredible. And free.
    Kevin Webster
    twitter: levelanalytics

    Kayak Fishing
    Web Analytics and Affiliate Marketing

  21. Thanks From:
    kse

  22. #13
    Roll Tide mobilebadboy's Avatar
    Join Date
    January 18th, 2005
    Location
    Mobile, Alabama
    Posts
    1,220
    Quote Originally Posted by John Powell View Post
    Edit: I haven't a clue how I got all that anchor text with that link.
    Option for posting - "Automatically retrieve titles from external links". (Facebook-style)

    I learned PHP like I learned HTML, CSS and everything else. Examining what was already out there. With HTML, I "Viewed Source". Of course, you can't do that with PHP, but I did find pre-written examples of what I wanted to to do, studied the code (searched Google for what certain functions did) and learned how to apply it to my own code. And just built from there (with references to php.net).

    Been web designing/coding for 17-ish years like that.
    Last edited by mobilebadboy; June 15th, 2011 at 12:31 AM.

    Shawn Kerr (.com) | Disney World | SEC Football

  23. Thanks From:
    kse

  24. #14
    Speechless OTProf's Avatar
    Join Date
    November 4th, 2006
    Location
    Sunny SoCal
    Posts
    832
    Quote Originally Posted by Kevin View Post
    Ooops. Got typing too fast for my brain to keep up: Amazon.com: Web Database Applications with PHP and MySQL eBook: David Lane, Hugh E. Williams: Kindle Store

    Published by O'Reilly, not O'Brian
    Thanks! Some of the comments imply it is a bit out of date and doesn't really cover php 5 and that a number of examples have errors. Thoughts?

    I'm trying to find a decent way for my 14 year old to learn LAMP this summer -- so maybe he can resurrect my expensive but cool price comparison site...

  25. #15
    ABW Ambassador superCool's Avatar
    Join Date
    April 23rd, 2008
    Location
    Texas
    Posts
    1,268
    Quote Originally Posted by Kevin View Post
    By the way, when you're ready to start writing, download the NetBeans IDE. It's incredible. And free.
    An IDE is a great idea. superCool needs to do that. So much easier when there's instant help. superCool can never quite remember which command to use. It gets old going back to old code to find what you need. Thanks for the reminder!

    Kevin if you have any specific tips please PM. (thanks)

  26. #16
    ABW Ambassador superCool's Avatar
    Join Date
    April 23rd, 2008
    Location
    Texas
    Posts
    1,268
    Quote Originally Posted by OTProf View Post
    Thanks! Some of the comments imply it is a bit out of date and doesn't really cover php 5 and that a number of examples have errors. Thoughts?

    I'm trying to find a decent way for my 14 year old to learn LAMP this summer -- so maybe he can resurrect my expensive but cool price comparison site...
    superCool has a PHP book but never really looked at it much. it might be easier to find a simple online tutorial just to get him/her started and then let them experiment with a local version of your site code.

    good luck bringing the kid on board to help you. hope it works out!

  27. #17
    Analytics Dude Kevin's Avatar
    Join Date
    January 18th, 2005
    Location
    Rochester, NY
    Posts
    5,904
    Quote Originally Posted by OTProf View Post
    Thanks! Some of the comments imply it is a bit out of date and doesn't really cover php 5 and that a number of examples have errors. Thoughts?

    I'm trying to find a decent way for my 14 year old to learn LAMP this summer -- so maybe he can resurrect my expensive but cool price comparison site...
    Hmmm. That's possible. I've owned it a few years now, and only reference it on occasion. I was pretty sure it was PhP5 based however. I'll have a look when I get home tonight and double check.

    As for the errors in the examples, while I don't recall having any issues following along, it's a great way to get your troubleshooting skills up to speed
    Kevin Webster
    twitter: levelanalytics

    Kayak Fishing
    Web Analytics and Affiliate Marketing

  28. #18
    ABW Ambassador kse's Avatar
    Join Date
    November 29th, 2005
    Posts
    2,511
    I want to Thank everyone who posted here and in the "How to install PHP" thread.

    I have spent a few hours now converting one of my datafeed sites from ASP Classic to PHP. I not finished yet but all most!! So thank you!!

    I have made a decision to no longer create ASP sites due to the fact it getting harder and harder to find good ASP Host that are also affordable.

    Its like Beta / VHS, I have been using my beta machine way to long time to get a VHS!!!

    Kevin........
    Last edited by kse; June 16th, 2011 at 08:59 PM.
    MERCHANTS: Start showing your coupons directly on your site, that way your shoppers will stop leaving your site looking for them!! If not then remove your Coupon Box!!

  29. #19
    ABW Ambassador kse's Avatar
    Join Date
    November 29th, 2005
    Posts
    2,511
    Since all of the right people are in this thread and its related I will ask this question here:

    Is their something I can put in my code that will show me the error in my code and not just a blank screen??

    example:

    $Page = $_GET["page"]; if i forget the ";" the pages does not load and I have no idea why the pages dows not load.

    I have added:

    error_reporting(E_ALL);
    ini_set('display_errors', '1');

    at the top of the page but that does not help with these types of errors.

    Any suggestions??

    Thanks
    Kevin.....
    MERCHANTS: Start showing your coupons directly on your site, that way your shoppers will stop leaving your site looking for them!! If not then remove your Coupon Box!!

  30. #20
    ABW Veteran Mr. Sal's Avatar
    Join Date
    January 18th, 2005
    Posts
    6,795
    example:

    $Page = $_GET["page"]; if i forget the ";" the pages does not load and I have no idea why the pages dows not load.
    Have you tried this?

    $Page = $_GET["page"] or die (mysql_error());

  31. #21
    ABW Ambassador kse's Avatar
    Join Date
    November 29th, 2005
    Posts
    2,511
    Quote Originally Posted by Mr. Sal View Post
    Have you tried this?

    $Page = $_GET["page"] or die (mysql_error());
    Thanks for the suggestion but I was hoping their was something I could put at the top of the pages to display any and all errors that may be in the code.

    In asp when ever I make an error/typo it gives me the line number and some details on the error which makes it easy to find when I ran the page in IE. Currently with PHP I get no details with these types of errors and the error could be on any of the 500+ lines of code.
    MERCHANTS: Start showing your coupons directly on your site, that way your shoppers will stop leaving your site looking for them!! If not then remove your Coupon Box!!

  32. #22
    ...and a Pirate's heart. Convergence's Avatar
    Join Date
    June 24th, 2005
    Posts
    6,918
    Nevermind - you already tried that...
    Last edited by Convergence; June 17th, 2011 at 04:17 PM.
    Salty kisses, Sandy toes, and a Pirate's heart...

  33. #23
    Newbie
    Join Date
    June 30th, 2011
    Posts
    9
    I apologize up front if you already know about this... but I think what you're looking for is how to do exception and/or error handling? Both are 2 separate but related topics.


    Errors are logged in PHP to the php.ini file. These don't display by default because most people don't want errors to be displayed to users. But you can turn them on by modifying the file.
    check out - PHP: Runtime Configuration - Manual

    you could also just update the .htaccess file.

    I personally think that exception handling is a much better approach since I come from a java/OO background and it just looks more natural too me. I always surround code with try/catch blocks to help find problems.

    imho, eclipse with xdebug is the best free ide/debugger to use for php. It will save huge headaches. If anyone has better suggestions i'd like to hear about it. Sorry though, never been a fan of netbeans.


    This is actually a pretty big topic, if you need any help just give some examples and i can try to walk you through it.

    again, i don't know how familiar you are with programming so i apologize if this is just redundant info.

  34. #24
    Newbie
    Join Date
    June 30th, 2011
    Posts
    9
    btw,

    the code:

    error_reporting(E_ALL);
    ini_set('display_errors', 'On');

    won't help because your example is a syntax error.



    Not sure if i'm allowed to link to other sites here but this is a good starter on php debugging. Gives an intro to eclipse too, but i really think xdebug is a must have add-on for developing in php.
    Debugging techniques for PHP programmers

  35. #25
    ABW Ambassador kse's Avatar
    Join Date
    November 29th, 2005
    Posts
    2,511
    Thanks for the suggest I will give them a try.

    I am looking for the errors to be displayed to the user since I will only be used in develeopment and not live on the web. So I want to see all errors and have then fixed before it goes live on the web.

    Yes I have done some error handling as well.

    Thank you
    Kevin......
    MERCHANTS: Start showing your coupons directly on your site, that way your shoppers will stop leaving your site looking for them!! If not then remove your Coupon Box!!

  36. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. JavaScript to PHP and MySql, how much of a learning curve is it.
    By Cav in forum Programming / Datafeeds / Tools
    Replies: 26
    Last Post: July 27th, 2009, 04:53 PM
  2. Best Learning Source for PHP, mySQL??
    By JordanG in forum Programming / Datafeeds / Tools
    Replies: 7
    Last Post: August 16th, 2007, 11:26 PM
  3. Learning php??????
    By Trying to Win in forum Newbie Affiliate FAQs & Helpful Articles
    Replies: 18
    Last Post: January 22nd, 2006, 01:31 AM
  4. Best Sites/Books for learning about Dreamweaver MX
    By Kristina in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: June 13th, 2003, 12:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •