-
Posts
252 -
Joined
-
Last visited
Everything posted by ryanfilard
-
Thanks for pointing the injection out so I guess now I will add strip_tags to those form fields.
-
Don't store images in a zip file if you intend to unzip the image each time. It will cause the server to work harder and even cause slow loading time. If you are looking to save space use the jpeg format.
-
The login table just stores failed attempts.
-
Copying files from one hard drive to another
ryanfilard replied to The Little Guy's topic in Miscellaneous
Sorry about that, I just pulled it off my website. But if you don't like amazon just google USB IDE Adapter and you should find what you are looking for. -
I am trying to create for the first time a lock out system on my CMS. So is the code below sufficient for locking out impostors. This code is included onto the login page and has a few other files to help support it. <?PHP $ip = $_SERVER['REMOTE_ADDR']; include("../Connections/default.php"); mysql_select_db($database_default, $default); $query_uvs2 = "SELECT * FROM login WHERE `ip` = '".$ip."' "; $uvs2 = mysql_query($query_uvs2, $default) or die(mysql_error()); $total_fails = mysql_num_rows($uvs2); if($_REQUEST["error"] == "1") { $lockout = "10";//Maximum lockout attempts. if($total_fails >= $lockout) { include('functions/standard.php'); date_default_timezone_set("America/New_York"); e_log("security", "IP Ban for Brute Force (Possibly Page Refreshing)",$_SERVER['REMOTE_ADDR']); die("One does not simply brute force, to appeal this IP ban please empty the table login"); } else { include("../Connections/default.php"); mysql_select_db($database_default, $default); $addmenu = "INSERT INTO login (`ip`) VALUES ('$ip')"; mysql_query($addmenu, $default) or die(mysql_error()); } } ?>
-
Copying files from one hard drive to another
ryanfilard replied to The Little Guy's topic in Miscellaneous
Yes, do you have an amazon account or a nearby bestbuy. You could probably pick up a cheap USB adapter on amazon like this one, http://goo.gl/g9yym -
I am currently working on a newer version with a few other programmers. We fixed a lot of bugs and added a few features. It's not available for download yet but if you would like to see the progress http://elemata.com
-
Let's test CryptBB - Open source encrypted forum
ryanfilard replied to VanDerSaAr's topic in Website Critique
This could be very useful my only suggestion would be to create a modern design also don't show the encrypted data. Make it a gray box until the password is entered. -
I stopped renting servers and switched to my own private place. I have a few dell poweredges. Is there any thing I should know about NY Sales tax or someone suing me?
-
Happy Birthday
-
I left out some parts because I knew they were compatible such as the 250GB SSD, 4x 1TB HDD, and a cd/dvd/blueray drive
-
I am building a computer for my brother for his birthday and wanted to see if anyone in the forums could confirm the parts are compatible. http://www.amazon.com/gp/product/B005E98I0G/ref=ox_sc_act_title_2?ie=UTF8&smid=ATVPDKIKX0DER http://www.amazon.com/gp/product/B0050I1PI8/ref=ox_sc_act_title_3?ie=UTF8&smid=ATVPDKIKX0DER http://www.amazon.com/gp/product/B004RFBIUU/ref=ox_sc_act_title_4?ie=UTF8&smid=ATVPDKIKX0DER http://www.amazon.com/gp/product/B00858CYDA/ref=ox_sc_act_title_5?ie=UTF8&smid=ATVPDKIKX0DER http://www.amazon.com/gp/product/B007SZ0EOW/ref=ox_sc_act_title_6?ie=UTF8&smid=ATVPDKIKX0DER http://www.amazon.com/gp/product/B004351H9G/ref=ox_sc_act_title_7?ie=UTF8&smid=ATVPDKIKX0DER Thanks
-
UPDATE: I have reset the settings now it displays the website but shows the Default Website Page. How should I troubleshoot.
-
I recently purchased a new server and it was working yesterday, the only problem is I turned it off and on again now the site won't load. The admin panel works remotely but the site is down. All Help would be appreciated.
-
It works fine but flash is slowing fading from computers and cell phones. HTML5 or Javascript would be the better choice for a site.
-
I am currently aware of the Sites We Host picture bug.
-
http://goo.gl/77kp7 Can I have some feedback on how to make it better?
-
Welcome Andrew! PHP Freaks has helped me accelerate and expand my php knowledge, you will learn a lot here.
-
Php/sql Script Will Not Display First Result
ryanfilard replied to ryanfilard's topic in PHP Coding Help
I made a mistake when retyping the script, it should be this: echo $row_usersfriends['user']; -
Php/sql Script Will Not Display First Result
ryanfilard replied to ryanfilard's topic in PHP Coding Help
User is text, friend is text, and accepted is one This is what I am using to display the data mysql_select_db($database_main, $main); $query_userfriends = "SELECT * FROM friends WHERE `friend` = '$uid' LIMIT 9"; $userfriends = mysql_query($query_userfriends, $main) or die(mysql_error()); $row_userfriends = mysql_fetch_assoc($userfriends); -
I made this script: <?PHP while($row_userfriends = mysql_fetch_array($userfriends)) { echo '$row_userfriends['user']'; } ?> problem is it works but does not display the first result. Whats wrong? :-\
-
I am making a server management program that uses a web interface. I am new to javascript, how would I make text in <div id="var">0</div> change to the contents on http://mysite.com/cpu.php every 2 seconds
-
I like a challenge so I choose PHP.
-
I am trying to make a chat bot with preg_match but how would I go about scanning a sentence for hello, hi, and how are you?