Jump to content

Balmung-San

Members
  • Posts

    327
  • Joined

  • Last visited

    Never

Everything posted by Balmung-San

  1. Because it can be considered a tool, Google. It sure makes things a hell of a lot easier. Having a problem with your code? Google the error, bet you'll find a solution. Can't remember the exact function call? Google it! Google is the best coding tool ever.
  2. I've looked at it. Kind of gotten a feel for it, though I can't say I really know it yet. Assembly is one thing that I really want to look into, as I have an interested in OS development, and as far as I'm aware you'll need at least a small bit of assembly to get everything started up.
  3. I use different usernames in various places. This one will turn up many results that aren't me, due to this name being from a fairly popular anime series. My other names pull me up fairly well though.
  4. Balmung-San

    Distro

    I've got a lot of friends that love Ubuntu. I'm old-school: Slackware. Really, with the penguin, you can't go wrong. I've heard good things about Slackware. Is there any big feature it has that others don't, or is it just an all around good distro?
  5. Anybody know if one has been made yet? I've tried searching around but I can't find one.
  6. Balmung-San

    Distro

    From what I've heard (never having used it myself) Ubuntu is supposed to be a fairly good distro for beginners. I personally prefer either SuSe or Fedora. Again, it's mostly a matter of preference, and what you need to do with it.
  7. Honestly, I think that while they've put a lot of money and time into securing Vista, the fact that you have a prompt for most of it will annoy people to the point where they won't want to upgrade. As well, many countries are moving to a purely Open Source (and free) solution. Not only are they using Linux within the government, but they're developing their own flavors for citizen use. As well, there are so many free alternatives out there to Microsoft's products, that most of your average user base are starting to see them, try them, and stick with them (hey, they're free, why wouldn't they?). I think Microsoft will start to lose some of its market share, and indeed actually feel the blow of the Open Source movement. I think they can already feel it coming though, as they have partnered up with Novell. Though I still don't think Microsoft will really topple for some time, I believe they are starting to slowly decay.
  8. You would use the __autoload() function. This only works with PHP5 though. http://us2.php.net/manual/en/language.oop5.autoload.php
  9. Inside the function you need to use global $comments_per_page; before using it. That way you use the global instead of the local. Outside of the function I believe you can just use $comments_per_page. However, if you wish to be exactly sure about it, you can use $GLOBALS['comments_per_page'].
  10. Self taught. No classes in highschool for PHP development, and I'd be damned if my college had any smart web design/development teachers.
  11. And the fact that our corporate firewall/proxy/whatever's in my way blocks the ads. Seriously, I never asked to block them, they just were automatically blocked.
  12. Are you using the right login credentials? Also, after all the mysql_ functions, before the ; add in or die(mysql_error()) i.e.: mysql_connect("host","user","pass") or die(mysql_error());
  13. Change: echo "<font color='ff0000' size='1' face='verdana'>Health = $row['Health']</font>"; To: echo "<font color='ff0000' size='1' face='verdana'>Health = ".$row['Health']."</font>";
  14. echo <<<EOTABLE </table> EOTABLE; You're missing the EOTABLE;
  15. <?php mysql_connect("host","user","password"); mysql_select_db("database"); $query = "SELECT * FROM rpgusers WHERE username = '" . $_SESSION["username"] . "'";; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo "<font color='ff0000' size='1' face='verdana'>Health = $row['Health']</font>"; } ?>
  16. I would honestly never suggest this, as you're then sending the user's encrypted password over the internet. Never assume the internet is safe. If you're going to MD5 anything, make it some trivial bits of the user's registration, like username, any optional fields, etc. however, make sure you use more then one field in a pseudo-random order (at least not a highly predictable order, i.e. the way it's entered on the page). to add to that, i could be wrong, but doesn't md5($string1) and md5($string1) have the exact same output? if that's the case, then i wouldn't use md5 at all, because the method of retrieving this info after the user has clicked the link in the email, and is taken to a page where this charset will be retrieved via $_GET method... if two people have the same password (which is very likely), then it will register all of them, not that particular one. to generate a random ID i use either $_SESSION, or this bit of code: Yes, md5("monkey") will always churn out the same output. Even if monkey is stored in $string1, $string2, passed in statically, or in a constant. Also, your second point is why I don't suggest using the password as the md5 hash. Using multiple fields (and actually, make sure at least one is unique per user) will prevent the output from ever being the same, or at the very least make it highly unlikely to ever be the same.
  17. How is this a Third Party PHP script? Either way, mysql_query returns a MySQL result resource. You want to use mysql_fetch_array() or something similar.
  18. Replace mysql_query($q) with mysql_query($q) or die (mysql_error()); That will give us a better description of what's wrong.
  19. $cond = new mysqli('localhost', 'root', NULL, 'dbname'); Always remember that order of arguments does matter, even if the arguments are optional.
  20. You don't need the for loop. Outside of the while loop declare $i, then inside the while loop (but after the echo) do $i++;
×
×
  • 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.