Jump to content

Third_Degree

Members
  • Posts

    281
  • Joined

  • Last visited

    Never

Everything posted by Third_Degree

  1. I haven't read all your code but try changing: //This: while($row = mysql_fetch_array($results)) { //To This: while($row = mysql_fetch_assoc($results)) {
  2. No, PHP automatically closes these types of things.
  3. Use this at the top of your code: <?php error_reporting(E_ALL); ?> Also, the code to the required scripts might help. Is this a premade script?
  4. Your password is 'hello'. Someone has your hash. It is encrypted once. They perform a simple dictionary attack and your password is theirs in 10 seconds. Your password is 'hello'. Someone has your hash. It is encrypted multiple times with multiple algorithms. They perform a dictionary attack and come up with nothing because hash databases don't carry the md5 of the sha1 of the md5 of the sha1 hash of 'hello'. They brute force. It takes them a day only to realize, wow, it's another hash that will take them another day to crack, and so on. "now if the cracker has access to your database, i'm afraid you have a lot bigger issues than only md5'ing a password once." This shows that you don't know what you are talking about. What is the point of encryption?
  5. I don't think you know what you are talking about.
  6. https://www.paypal.com/us/cgi-bin/webscr?cmd=p/pdn/ipn-codesamples-pop-outside#php
  7. honestly, all you really need here is: <?php /* MySQL Connection Here */ $q = @mysql_query( "TRUNCATE TABLE `Users`" ); $result = ( $q ) ? "Table 'Users' does exist, and has been truncated." : "Table 'Users' does not exist"; echo $result; ?>
  8. Yeah, a little heavy on the text and sometimes slow to load, but it is very user friendly and looks really nice.
  9. Yes you can submit all the values, and for your second part you can also use document.getElementById('div').style.visibility='hidden';
  10. you might need IF OBJECT_ID('databasename.Users') IS NOT NULL TRUNCATE TABLE `Users`
  11. you ALWAYS have to use mysql_real_escape_string around $_SERVER["REMOTE_ADDR"] (The X-Forwarded-For http header can be altered)
  12. You won't have to "hold" these values. Just output them to the page and hide/show them with css every time a new tab is clicked.
  13. it can search through html, but I don't see why you don't just use something like ereg() or strstr() here. Also, if $top_medals is a class, I doubt preg_match can deal with it as a string.
  14. also, you probably want to put an htmlentities() around the username for XSS prevention as darkfreaks said, but also like corbin said, it may not be nescessary.
  15. Some people don't stop at twice (me). I frequently use encs like md5(sha1(md5(sha1())))
  16. HTML/Javascript <script type="text/javascript"> function getfile() { var req; req = new XMLHTTPRequest(); req.onreadystatechange = function() { if (req.readyState==4) { document.getElementById('div').innerHTML=req.responseText; } } req.open("GET","file.php?file="+document.getElementById('file').value,true); req.send(null); } </script> File: <input type="text" id="file" /><br /> <div id="div"></div> PHP <?php header( 'Cache-Control: no-cache, must-revalidate' ); header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' ); print nl2br( htmlentities( file_get_contents( $_GET['file'] ), ENT_QUOTES ) ); ?>
  17. well, you'll need the function imagejpeg regardless, but I know nothing about that script (I hate premade scripts, such a hassle to mod), so I wouldn't know how to integrate it into the code.
  18. yeah flash and some sockets.
  19. I don't know what you're trying to do here but your logic seems a little strange, if the session variable is ASC, you reset it to DESC and vice versa. Are you sure this is what you are trying to do?
  20. try this at the top of your code: set_time_limit(0);
  21. I'm not sure if a directory is updated in realtime when a STOR command happens, but you could pull the most recent file from a directory and continually filesize() it with ajax. Like I said, I don't know if it would work.
×
×
  • 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.