Third_Degree
Members-
Posts
281 -
Joined
-
Last visited
Never
Everything posted by Third_Degree
-
[SOLVED] Need Guru Help! PHP Login Not Working!!!
Third_Degree replied to coldfiretech's topic in PHP Coding Help
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)) { -
Really Slow Response Times
Third_Degree replied to matthewjumpsoffbuildings's topic in PHP Coding Help
No, PHP automatically closes these types of things. -
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?
-
hahaha ditto
-
I don't think you know what you are talking about.
-
https://www.paypal.com/us/cgi-bin/webscr?cmd=p/pdn/ipn-codesamples-pop-outside#php
-
[SOLVED] TRUNCATE TABLE IF EXISTS `Users` - not valid?
Third_Degree replied to PC Nerd's topic in PHP Coding Help
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; ?> -
PHP, MySQL, Flash and HTML mashup usability critique please!
Third_Degree replied to sliceroony's topic in Website Critique
Yeah, a little heavy on the text and sometimes slow to load, but it is very user friendly and looks really nice. -
Yes you can submit all the values, and for your second part you can also use document.getElementById('div').style.visibility='hidden';
-
[SOLVED] TRUNCATE TABLE IF EXISTS `Users` - not valid?
Third_Degree replied to PC Nerd's topic in PHP Coding Help
you could also consider doing this with php. -
[SOLVED] TRUNCATE TABLE IF EXISTS `Users` - not valid?
Third_Degree replied to PC Nerd's topic in PHP Coding Help
you might need IF OBJECT_ID('databasename.Users') IS NOT NULL TRUNCATE TABLE `Users` -
you ALWAYS have to use mysql_real_escape_string around $_SERVER["REMOTE_ADDR"] (The X-Forwarded-For http header can be altered)
-
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.
-
php preg_match searching within html tags
Third_Degree replied to bftwofreak's topic in PHP Coding Help
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. -
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.
-
Some people don't stop at twice (me). I frequently use encs like md5(sha1(md5(sha1())))
-
Instead of loading into a div my function is linking to the site
Third_Degree replied to tinman486's topic in Javascript Help
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 ) ); ?> -
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.
-
yeah flash and some sockets.
-
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?
-
try this at the top of your code: set_time_limit(0);
-
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.
-
[SOLVED] can MySQL do this or should I leave it to my script?
Third_Degree replied to boo_lolly's topic in PHP Coding Help
haha alright dude