
Balmung-San
Members-
Posts
327 -
Joined
-
Last visited
Never
Everything posted by Balmung-San
-
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.
-
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.
-
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.
-
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?
-
Anybody know if one has been made yet? I've tried searching around but I can't find one.
-
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.
-
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.
-
automatically loading a class file when class is called?
Balmung-San replied to Liquid Fire's topic in PHP Coding Help
You would use the __autoload() function. This only works with PHP5 though. http://us2.php.net/manual/en/language.oop5.autoload.php -
Self taught. No classes in highschool for PHP development, and I'd be damned if my college had any smart web design/development teachers.
-
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.
-
wrong mysql value/column being selected.
Balmung-San replied to mattal999's topic in Third Party Scripts
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()); -
I'd test this, except I'm at work.
-
*hits head* Change: VALUE To: VALUES
-
wrong mysql value/column being selected.
Balmung-San replied to mattal999's topic in Third Party Scripts
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>"; -
[SOLVED] Parse error: parse error, unexpected $end in C:
Balmung-San replied to suttercain's topic in PHP Coding Help
echo <<<EOTABLE </table> EOTABLE; You're missing the EOTABLE; -
wrong mysql value/column being selected.
Balmung-San replied to mattal999's topic in Third Party Scripts
<?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>"; } ?> -
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.
-
wrong mysql value/column being selected.
Balmung-San replied to mattal999's topic in Third Party Scripts
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. -
Replace mysql_query($q) with mysql_query($q) or die (mysql_error()); That will give us a better description of what's wrong.
-
[SOLVED] Help with str_replace - Should be a QUICK FIX
Balmung-San replied to JSHINER's topic in PHP Coding Help
stripslashes() -
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++;
-
What's your question?