Jump to content

keeB

Staff Alumni
  • Posts

    1,075
  • Joined

  • Last visited

Everything posted by keeB

  1. Set up a local smtp server which does nothing with the emails and test it.
  2. http://en.wikipedia.org/wiki/Observer_pattern
  3. http://en.wikipedia.org/wiki/Access_control_list
  4. I am really keen on the way Java does things, and it makes things much more readable (for me!) if all of the includes are listed at the top of the file.
  5. The JAVA programmer in me is used to a header full on require_once() calls. I really prefer using it that way. If I ever write a basic testcase at the bottom of the file then I don't have to worry about dependencies in other 'packages' (again, the java thing.) Here's what the structure of my app looks like, Patrick: http://nick.stinemates.org/work-desktop.png . Ignore the python on the right :X
  6. Yeah, I noticed that at the end. I'm used to it in python.
  7. <?php $items = array("name" => "keeb"); foreach ($items as $ikey => $item) { $arr =$_SESSION['basket']["items"][$ikey] = $item // ? } ?>
  8. I really don't understand how this is a bug.. ? Can you elaborate?
  9. If we're talking efficiency then why are we telling him how to do this? lol. Parsing out to put it somewhere else.. sounds logical to me (not!)
  10. please post the output of <?php print "<pre>"; print_r($_POST); ?>
  11. The code you are showing is index.php?
  12. $my_arr = array(); foreach($_SESSION as $k=>$v) { $my_arr[$k] = $v; }
  13. no no. I don't mean the mysql python bindings. these are obviously installed. I am talking about this: ImportError: DLL load failed with error code 193 Search google for that line.
  14. Yo if you can't take syntax from another language and apply it then you just don't get the concept. You'd be better off asking someone to write it for you.
  15. Question: Who displays > 200 rows of anything? Isn't this why paging was invented? If you are exporting this information to pdf, xls, csv -- doing it in chunks is most likely safer and less intensive on the server. I'm going to assume the database server has better ways of extracting the data and parsing it than you do. If not, contact said database and get a job there. As for starting with 2 arrays and parsing them, I have no idea but starting with 2 sounds faster than having a huge one and breaking it in to 2.
  16. I think I would have a Withdrawl (FK Trs.id), Deposit (Same FK), and Transaction tables. As for efficiency, always have the database do it.
  17. Great job! If only you could skip the PHP'isms and type it how you want: typedef struct {   char *name;   date_t expires;   bool active; } s_person;
  18. Just reviewed the patch. Very cool, nicely done.
  19. I appreciated the image It looks a lot better than text. This coming from a console junkie. Barand is just an oldie! For tracking of anonymous submissions, I usually just create an Anonymous user and leave it at that. This way you can have proper database design (with FK's, etc)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.