Jump to content
MakeWebGames

hamster01

Members
  • Posts

    1,108
  • Joined

  • Last visited

    Never

Everything posted by hamster01

  1. Re: Secure your script (lock it down from outsiders)   while doing that someone with knowledge could still inject your script and call an outside file to be uploaded and then executed from where they move the file.   They would be able to upload it, but nothing would execute, and since the directory is set only for files to be created by group, it won't be able to be moved. A file is just a plain text file, unless it has the ability to do something. Edit: A sql injection would be able to overwrite a apache config file.
  2. hamster01

    Extract() Error

    Re: Extract() Error Turning array keys into variables, and asigning the array values of them to the variables.   It is making variables out of the array key, and values. A script to duplicate that would be; <?php $array = array('hello' => 'hi', 'world' => 'earth'); foreach($array as $key => $value) $$key = $value; echo $hello; ?> A coding error by some, a great wayto dynamically create variables for others.
  3. Re: Secure your script (lock it down from outsiders)   chmod 0566 uploads/
  4. Re: Need help Frame it. http://www.w3.org/TR/html401/present/frames.html
  5. Re: heredoc, heredoc what?   Actually, it doesn't effect speed; Unless the server has a 100mhtz processor. Most php/script editors grays html when you close the php script, zend even hides it.
  6. hamster01

    Mail Box

    Re: Mail Box   <script language="javascript"> var max = 50; function count(obj) { cur_new = max - document.getElementById(obj).value.length; document.getElementById('counter').innerHTML = cur_new; return true; } </script>   Just add the textbox and span/div element. <textarea onkeypress="javascript:count(this.id)" id="co_txt"></textarea> <span id="counter">50</span>   http://www.quirksmode.org/dom/maxlength.html
  7. Re: HTTP_X_FORWARDED_FOR' Try putting this somewhere in your script: error_reporting(E_ERROR);   Or for debugging purposes, try this on a seperate script, then just post the output. print_r($_SERVER); Or just use HTTP_SEVER_VARS. $IP = ($HTTP_SERVER_VARS['HTTP_X_FORWARDED_FOR']) ? $HTTP_SERVER_VARS['HTTP_X_FORWARDED_FOR'] : $HTTP_SERVER_VARS['REMOTE_ADDR']; Just add HTTP_SERVER_VARS as a global when used in functions.
  8. Re: Forums...VB Vs. IPB All CMS and Forum system(forums stores content, so it's a cms) have the same security loopholes. A common example, the XSS in the forum descriptions, anyone can get into the admin panel and steal all the users cookies, sites visited, and much more, and the users won't even know it. But, I would suggest vBulletin, even though it's a paid product, it is the money worths. The team of very experienced developers made it, and maintains it.
  9. Re: Welcome back CE   And why is that?
  10. Re: 4 year old smoker This is just getting anoying.. My words to everyone.. If you want to smoke, smoke your brains out.. If you don't then leave the people who does the f*ck alone!
  11. Re: Securing Variables   From isomerizer himself.   Oh, f*ck you, you started it..
  12. Re: Update MySQL Table Using An Array   1) Go skullf*ck yourself. 2) Go take a look at my examples of work. 3) Get a life, or rent one in your case, because nobody would be stupid enough to sell you one.
  13. hamster01

    Functions

    Re: Functions   Well, obviously you didn't know that :) Sure thing mate, whatever you say..
  14. Re: 4 year old smoker   Now googling..  
  15. Re: Securing Variables     He's not stupid, now stop trying to be clever..
  16. hamster01

    Functions

    Re: Functions   Wow, did you just learn that? Good work once again Einstein..
  17. Re: Update MySQL Table Using An Array   And there you go again, it may be a mental disorder, you should go checked. (; <?php function phrase($array) { mysql_query("UPDATE `" . $array[0] . "` SET `" . $array[1] . "` = '" . $array[2] . "' WHERE `" . $array[3] . "` = '" . $array[4]); } phrase(array('users','name','n00b','name','Zeggy')); ?>
  18. Re: 4 year old smoker No Comment. The chances are 1 in what is it, about one in a million[/n]!!
  19. Re: Update MySQL Table Using An Array   And that is a very inefficient use of loops and database queries :) If you had ten elements in an array, there'd be 10 queries on that page. It would be better to construct the query in the loop, then run the query after it's done. You should really try not to confuse yourself while typing.. That was just an example with arrays.. function phrase($user, $field, $value) { mysql_query("UPDATE users SET $field = '$value' WHERE userid = '$user'"); }
  20. Re: 4 year old smoker And that's what could happen. I hate you god damn hippies trying to try and say what people can and cannot do! And just for the info, I don't smoke, I also have nothing against smokers.. There is also absolutley no reason I don't smoke. My dad, stepmom, mom, sister and most of my friends smoke!
  21. Re: MOD Contest Well, I have a bit of spare time this weekend. And your engine is one that I really like, so I'll try my best.
  22. Re: (v2) Proxy blocking   Well, unless your psysic and can guess his next IP's, it's a slow process. But since IP's change the whole time, and different one mostly, not really.
  23. Re: (v2) Proxy blocking Firstly, They are called tables, not folders in a database. Secondly, It will take you forever to block that person, because most likely, they have an dynamic IP. AS I said above.
  24. Re: 4 year old smoker We are all going to die anyways. :p
  25. Re: (v2) Proxy blocking I just told you. :|
×
×
  • Create New...