Jump to content
Larry Ullman's Book Forums


  • Posts

  • Joined

  • Last visited

kwandoa's Achievements


Newbie (1/14)



  1. I loaded PEAR successfully and loaded the the required packages but when I run login.php I get "Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\bin\php\php5.4.3\pear\Auth.php on line 469" and a "Strict standards: Non-static method DB::isConnection() should not be called statically, assuming $this from incompatible context in C:\wamp\bin\php\php5.4.3\pear\Auth\Container\DB.php on line 150" error. Would you be able to explain this pls? I am on a win7 system and a WAMP server.
  2. I have been to the PEAR website but find the installation instructions a bit vague. Is there another site that has in depth instructions for newbies? rgds
  3. Hi The scripts that I downloaded are not correct. chapter 4 examples are not present. is there an updated version of the scripts? rgds
  4. I would like to know where I can download the zip codes for this chapter. The link in the book does not work. rgds
  5. Hi Would you be so kind as to break down and explain the following: // Delete old sessions: $q = sprintf('DELETE FROM sessions WHERE DATE_ADD(last_accessed, INTERVAL %d SECOND) < NOW()', (int) $expire);
  6. Hi Sam. this link takes me to PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition) Regarding the problem I have. What i have done to try and debug is copied the style.css file into my includes file (as directed by the file structure in the book pg 54) and into a style folder that I created as the code directs <? <head> <title><?php echo $page_title; ?></title> <link rel="stylesheet" type="text/css" href="style/style.css" title="style" /> </head> ?> and still the css is not loading. I have gone back to 'PHP and MySQL for dynamic websites' book and also went through my working examples and that too has led me nowhere. What I have now done is gone to the website 'www.HTML5webtemplates.co.uk', downloaded another template and that HAS WORKED fine. So I assume that there is something wrong with the CSS file in the .zip file that I downloaded? pls advise
  7. I am busy with the chapter 2 templates section and my html template example does not look like the example in the book (header.html). I have loaded the css file. The footer seems to be ok. Is there an issue with the CSS template? or do u perhaps have a working example online?
  8. Hi I would like clarification on when to use echo and when to use print_r(). Also the 2 aurguments print_r() takes. I understand the variable $students but not the 1 in <? print_r($students, 1); ?>
  9. Regarding data validation and sanatizing, would it be considered wise to use HTML5 and Javascript data validation functions together with PHP data validation/sanatizing functions? I would think yes BUT I am concerned and don't understand what implications it could have on a production site.
  10. I understand why one would use the ($_SESSION['agent']), what I would like to ask though is why , in the conditional <? if (!isset($_SESSION['agent']) OR ($_SESSION['agent'] != md5($_SERVER['HTTP_USER_AGENT']) )) { ?> you would use OR and not AND. I would think that you would check for both?
  11. Ok, I understand, makes sense. Could I just ask, why would you also add $dbc? Why not just email and pass?
  12. I have completed 'PHP and MySQL for Dynamic Web Sites Visual Quickpro 4th Edition' (well, almost done, I am on the last chapter) and I was wondering if, regarding this book, I can start on ch 6 'Basic OOP' or do you recommend I start from chapter 1?
  • Create New...