Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. lol.
  2. Here are a couple of screenshots: As seen in the screenshots, there are some places where it doesn't render elements correctly.
  3. It crashes often for me, but it does pass Acid2.
  4. 99 wpm. Choose "Tests with double space after a period" instead.
  5. That's a pretty big issue IMO.
  6. Daniel0

    sIFR

    Wouldn't the load time increase if it has to download a lot of Flash files?
  7. Except in IE.
  8. That forum is only there temporarily until the main site is up and running again.
  9. I hardly ever use anything else other than for really small scripts or code examples.
  10. I like how you can do $select = $db->select() ->from(array('u' => 'users')) ->join(array('m' => 'messages'), 'u.user_id = m.user_id') ->where('u.user_id = ?', $userId) ->limit(5) ->order('m.message_created_at DESC'); if (!$ignoreDeleted) { $select->where('is_deleted = 0'); } $messages = $db->fetchAll($select); with Zend_Db. The above example could be for fetching the latest 5 messages of a user in whatever system you might have. You could do something like that.
  11. Because the ?function=1 part is HTTP specific and include() includes files on the filesystem.
  12. $contents = fread($fp);
  13. Welcome
  14. Yes, but the output of that should tell you what the contents of $_POST is. So what's the output?
  15. Declare the methods in dbconn as protected instead of private. Members which are declared as protected can be accesses by child classes as well, where as private members are exclusive to the specific class only. In this case it would make sense to use the factory pattern on the dbconn class. I.e. dbconn::factory('mysql') would return an instance of your MySQL specific class and dbconn::factory('sqlite') would return an instance of your SQLite specific class.
  16. Try to add var_dump($_POST); before the loop and see what it outputs.
  17. It means there is no data to iterate over in $_POST.
  18. It's actually called an octillion.
  19. Did you run the code? You cannot type hint scalar values.
  20. Exception does not have a destructor...
  21. printf('%d', $num);
  22. Line 1-6 of your source look like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> Also, please post in the correct forum another time.
  23. You just extend the Exception class: <?php class CustomException extends Exception { // custom functionality here } ?> Remember to call parent::__construct() if you override the constructor.
  24. For passwd, try this: echo [new_password] | passwd [username] --stdin Other commands probably have ways of reading the things directly from stdin (standard input) as well.
  25. You can use tidy for HTML. I'm not sure about PHP though.
×
×
  • 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.