hamster01
Members-
Posts
1,108 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by hamster01
-
Re: Functions Here is the superiority chain: Functions <- PHP - MySQL / | | Classes -> If <- Database Then the other libs come in. I mainly use it for everything, it saves allot of variable space, you write it once fluently, and then you just use it. And I did mention you can get it easily, phpclasses.org Edit: So yes.., the script I made you was if statements and not functions, but it's only for one time use.
-
Re: Wich OS do you prefer? Do you know that for a fact?
-
Re: v3 game engine Did you know, Anyone can resell mccode and dbs can do a thing about it. Sure he can say it is his, but then someone could goto court and sue dbs for removing it, because it is not copyrighted. There is actually no evidence dbs made it, so it's actually as good, no, not even, as the GPL licence. The most successful version, speaking copyrighted whise, is the lite version, because it is atleast under protection under the GPL licence. Even if there is a v3 etc, and if it is copyrighted, noone can say dbs made it, because it would be in someone elses name. Most of these people who made a game engine and are reselling it, it's not under protecting of anything. So that's why I know even if people whho sell their modifications can't do anything about someone reselling their modifications. The only thing that can legally happen to them is people from CE telling them it is illegal, which it isn't.
-
Re: [mccode] Proxy Deny Script No real way to stop all proxies. You could use: <?php $Open = fsockopen($_SERVER['REMOTE_ADDR'], $_SERVER['REMOTE_PORT'], $er, $ers, 5); if (isset($Open)){ echo 'You are using a proxy.'; } else { echo 'I don\'t think you are using a proxy'; } ?> But not even. I changed my localhost port to 319, just not to be cought by proxies, and to piss of P2P clients. :)
-
Re: Functions I find it much easier to use classes/functions. I'd make a class with misc. things like strip a string, things like that, and then make those as functions and put it in a class. Whenever I need it I just include it. I also find it very usefull when using ajax with it. And the best thing with classes, it's everywhere, and you can find things you need very easily and fast. :)
-
Re: FREE ADVANCED USERSONLINE MOD A syntax error or what? If it is a syntax error, try this: <th>\$".$ir['money']."</th> Edit: woooh, I can't spell money
-
Re: Inventory Problem There are a couple of reasons for this. I really do not know why it would store in the temp folder. Check if you have enough space, firstly. Check the permissions of your php and mysql temp folder, secondly. If all else fails, go jump on your host.
-
Re: When is it ok to lie? a man should tell the truth in order to convince someone that you are trustworthy or i could end up in you losing a buisness deal for not be trustworthy and not telling the truth. Sadly though, in the real-world marketplace, liars and conniving schemers are at the top of the food chain. So if you're arguing that to "keep your business up" is a reason to tell the truth, I would say the opposite is true. If you wish to make it to the top, you have to lie to get there. Any other reasons you can think of? I agree there, but also with that, people that tries harder and does not lie, some do get successful and very much respected. But again, scamers, who thinks they have a business, tells lies and scam people the whole day, and they do get richer than most people. While most people would say that's understandable, I could also see how people would label that as deceitful. Let me clarify what you said here... it's ok to lie so as not to hurt a person's feelings? Yes, i'd rather have the guilt of just dumping the person rather than, maybe ruining her social/love live forever. I agree with ya here. Keeping news of the loss of a loved one (or just a friend) from someone is a serious lie that is almost never ok, partly because sooner or later they will notice and it will hurt even worse because of the lie. There are extreme circumstances, perhaps when the person is on the edge of shock or some such thing, when a temporary lie is necessary to protect their physical health; however, on a like note, it is something you should resolve to tell them as soon as it is realistically possible. Remind me never to go out with you. Will do.. Seems like you are lumping half the human population into a rather loose generalization. While that may be true in your personal experience (something I would never attempt to rebut), it would be dangerous to label all of the female (teenage?) population like that. It may not be all of them, but most of the women(teenagers) I met is like that. It may just be the teenagers, hopefully..
-
Re: Backwards - sdrawkcaB siht od ot php esu osla dluoc uoy
-
Re: When is it ok to lie? Although, the person may have had fun, and really like you, and therefore try and contact you again, which means you will still have to tell her, but she will have gone through all the effort of finding you :-) Still, if she phones me, I could simply not answer, if she tries again, and I do answer the phone, then I could simply tell her i'm busy. If she keeps going on, then you tell her shes getting annoying. I find it that women works in weird ways, mostly teenagers though; They plan everything, if it does not go as they imagined their perfect date to be, then they would eventually get pissed and ignore you.
-
Re: When is it ok to lie? Good debate. It really depends on what you are lying about. There is an old saying; "You lie to protect the people you care most about". That is true, but not really like younggold explained. Say I'm on a date, I really do not like the person i'm with, I don't want to be rude, so i'll lie and tell them I need to go. Say Like the tsunami, Someone comes back from a holiday, they didn't hear that someone they knew died with it, What are you going to do? You could lie and say nothing, but then again, it would be more hurtfull when they do eventually find out.
-
Re: cron jobs help No such thing m8 :) I agree, I myself work with an H-Sphere CP, they really aren't new, maybe not as advanced as a Cpanel, but it gets the job done. Since I have upgraded with another host, which has Cpanel 11, I still asked to hold my Cpanel 10 theme. This is a matter of opinion, you cannot flame someone for liking different things. Edit: Only saw your point just now seanybob, Nothing is "unhackable", that's why I laugh when I see MCCode games having this hacker free image.
-
Re: Wich OS do you prefer? Oh No.. Mac OS X, although it is intel based now, is still a long way from becoming windows. The user expieriance for the basic user with windows gives them a kick. Most people I have met is your average guy wanting a computer, when you should ask them wich OS they prefer, although XP and 2K is much cheaper, and even though linux is free, they would go for Vista. It's just the user friendlinesses and GUI, that makes them go for it, even though they don't know it is a very unstable ans unsafe OS. Anyway, I will still go for Linux, Unix is for servers and stuff, Mac OS X, uhm.., I have never really seen it, but my step mom works with it, she says it is good(She herself did programming), so I'm pretty sure it is good aswell. I just like A command prompt, it gives me a kick. :)
-
Re: Almost 10k Topics. Well, It may.. But long way behind some rpg forums. Stats of RPG.net: Just a standing point, you put in ads.
-
Re: The WeIrDeSt Error you have seen. It may seen weird, but that's how google works. finds the most commonly used keyword that matches(case).
-
45985 Posts in 9978 Topics. Well it has developed allot since i joined.
-
Re: [free] AJAX Notepad Very Nice :), but this isn't Ajax. Here is an Ajax version. On the Page where you want to add the notepad, add this somewhere. <?php echo ' <script src="Ajax.js" type="text/javascript"></script> <script> var url = "UpdateNotepad.php"; var what = "ReturnStatus(req.responseText)"; function UpdateNotepad() { var text = document.getElementById("Text").value; DoCallback("text="+text); } function ReturnStatus(Status){ document.getElementById("status").innerHTML = status; } </script> <div id="status">Please type in something</div> <textarea id="Text" rows="4" cols="40"></textarea> <input type="button" value="Update">'; ?> And then upload the file called Ajax.js And then also, uplaod the file called UpdateNotepad.php. Just change the scripts to their right extensions. That's it, Your done! btw. oxi, you didn't reply..
-
Re: Anti-sql injection function Why would you want to strip backslashes? That doesn't sound right, try this. function Clean($String){ if (ini_get('magic_quotes_gpc') == 'off') $String = addslashes($String); else { $String = htmlenitites($String, ENT_QUOTES); $String = mysql_real_escape_string($String); } return $String }
-
Re: Guess the next poster KillalottheKiller
-
Re: cron jobs help DA == Easy Cpanel 11 == Hard Cpanel 10 = Easy
-
Re: cron jobs help It isn't a Cpanel. Its DirectAdmin. To put it simple :)
-
Re: cron jobs help
-
Re: THIS OR THAT? Gun. Bugatti or Porsche
-
Re: Urgent Trouble if you really would like to use that up there is an alternative. something that would drive a game such as torncity insane: $time = time(); header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: ".$time); // Date in the past
-
Re: Urgent Trouble Why the hell does people even need 50GB bandwidth and 10GB space?? You people just think its 'in fashion' aka 'cool'. I have a friend that gets about more unique visitors a day than most of these 'big' mccode games combined. You do NOT need all those stuff. Hosters are evil, they give you more, but then hardware fails and you end up sitting paid for something that has been down for 3 weeks.