Jump to content
Larry Ullman's Book Forums


  • Posts

  • Joined

  • Last visited

hacker's Achievements


Newbie (1/14)



  1. Thanks for clearing that up. I took the fact there are WordPress themes "based on the Twitter Bootstrap framework" a bridge too far. Don
  2. Larry, In the beginning of your book, you mentioned using the Twitter Framework instead of a third party template (I read Ed.2 quite some time ago) to create the user interface and in my nebulous way, I was asking whether WordPress can be substituted. That said, you now realize I know less about the Twitter Bootstrap framework than I do about WordPress. :^) Thanks for your help, Don
  3. Thank you Larry, Do you have any comments with repect to my input above the P.S. in post #3? Don
  4. Larry, Thank you for the reply. I am pressed for time so I suppose having a look around the web for an appropriate e-commerce plugin wouldn't hurt. However, since I am not shipping tangible goods, I do not have the need for a traditional e-commerce package. I was thinking, since at least one WP plugin I installed (IIRC, BuddyPress) added tables to the database I originally set up for WP, I could incorporate additional tables for storing customer account information (less CC numbers) and the data necessary for transmission to a payment gateway (rather than PayPal). Thanks again, Don P.S. Is a 3rd edition of Effortless E-Commerce in the stars, so to speak?
  5. I just purchased your book and have almost made it to the end of chapter two. Perhaps my biggest concern at this point is, I want to integrate the techniques I learn in "Effortless E-Commerce 2nd Ed" into WordPress themes (at least initially). Am I barking up the wrong tree? I know there's e-commerce plugins out there that can be integrated with WP, but I want to learn e-commerce at the code level. Thanks for your input... I've got a shelf full of your PHP books but I'm not yet at the developer level with respect to WordPress. hacker
  6. Thank you Larry. I've got another question that came up a bit later in Chapter 10, if you would be so kind... I placed http://www.apple.com/ in my array of URLs to validate (script 10.2 - check_url.php) and it came up 400 Bad Request even though the link works fine. The http://www.apple.com/ link was flanked by URLs that came up 200 OK in my $urls array. Can you explain why this might happen? Thanks again, Hacker
  7. Larry, There's a couple points on page 330 I'd like to discuss. Can you expound on: "... unless you are merely copying the entire contents of a file, you'll need to develop some system for gleaning the parts of a page you want according to how the data is structured." Are there references that go into detail regarding this? Also... Without the aide of gummy-stuff.org (pulled from the web), what resources do we have for format string information? I've noticed the references made in your tips section on page 332; however, do those "networking-related" classes of PEAR supply format strings necessary to communicate with Amazon, Yahoo, etc.? Thanks, Hacker
  8. I found this to work much better... By placing the following line of code in page.php: $_SESSION['page'] = $page; after if ($page) {... (line 25 in your book) AND... $page = (isset($_SESSION['page'])) ? $_SESSION['page'] : null; after session_start() in utilities.inc, all the gremlins were run out of town. Hacker
  9. Hi Larry, I hope it's OK with you if I resurrect this old thread. Anyway, could edit_page.php first check (just after utilities.inc.php is required) whether the REQUEST_METHOD is set to GET or POST? If it is set to GET the value of $_GET['id'] is saved in $_SESSION['id'], (or pehaps something like $_SESSION['pageID']) then one can use the $_SESSION variable when submitting changes to the $page object. This logic seems to work OK (at least so far); however, I don't know if it's fundamentally sound in terms of security or OOP principles. Thanks, Hacker
  10. OK then... I'll see what I can do with this. Should the classes be extended in order to create the edit_page.php script? I just integrated (earlier this week) TinyMCE into header.inc.php so it'll work with a textarea element having the attribute and value name='content'. Thanks for the reply, Hacker
  11. Larry, Is there any particular reason why the properties (or attributes) of the two classess (Page and User) in Chapter 9 were declared protected opposed to private? I haven't quite made it to the end of Chapter 9; however, Page and/or User do not appear to be extended. Do you use these classes in later chapters? Thank you, Hacker
  12. What's still wrong according to syntax? Are you refering to my $dog->getCount() in my opening post? What part of "...A property declared as static can not be accessed with an instantiated class object (though a static method can)" don't you understand? If you're not satisfied with the PHP manual, I don't know what to tell ya. Actually, I don't give a hoot... the PHP manual cleared up my confusion and I'm happy. Good night, Hacker
  13. Larry, I was nosing around in the PHP manual and suggest you read this: http://us3.php.net/manual/en/language.oop5.static.php Near the top of the page it says: "Declaring class properties or methods as static makes them accessible without needing an instantiation of the class. A property declared as static can not be accessed with an instantiated class object (though a static method can)." Regards, Hacker
  14. OK, so what else do I need to do in my php.ini file in order to see some warning action? I realize this issue isn't directly related to Larry's book so if you want to refer me to another source, go right ahead. I'm running PHP version 5.4.24 and Apache 2.2.26 on MacOSX (v10.9). Hacker P.S. BTW and with all due respect, while you keep beating the error reporting drum, that doesn't really reconcile the fact that Larry wrote in his book, "static methods are almost always public because they can't be called through an object." Granted, I'm no Zend Certified engineer but when someone says they can't be called through an object, I expect to see the script terminate with fatal errors. Is Larry on vacation?
  • Create New...