Jump to content
xisto Community

lonebyrd

Members
  • Content Count

    426
  • Joined

  • Last visited

Everything posted by lonebyrd

  1. I'm still not getting it to work. Maybe it's just something I'm missing but I've checked it a couple of times and I cant figure out why it's not working. Should I have to make a seperate username in my script for both my db and site? I.E. $dbusername: lonebyrd_ $username: lonebyrd
  2. I'm trying to run one of my scripts on my website and its giving me this error: Is there another password for MySQL other than the one I use for my site that I just don't know how to access?
  3. I just started changing up passwords for things on the internet and on my website stuff. Not that I've been hacked (yet), but, more and more by reading this forum and the like I've come to the conclusion that people as a whole cannot be trusted on the net. And when my site is more developed, I'm definitly gonna need to make sure I know how to back it up. Especially that database thing. And I'll also have to look up that cron job thing about the site back-up too. Thanks for the heads up M^E. I mean, I always knew it was a possibility, but now I know some ways to protect myself.
  4. Well, in defense of some people that make long url's (not that I am one of these people), recognition may be exactly the point. To some people, something like Guiness Book of World Records IS a big thing. I mean ya need to think about it, your name is in the most famous record book in the world. My eight year old daughter even knows about that book. Some people just long to be known for something but can't stand out from the crowd, so maybe this is their way, thats all.
  5. Firefox automatically updated for me. I have a question about that. Is that a good thing to do? I mean, I'm new to firefox and don't know if there is ever problems with new updates that I should wait to download them. And if so, how do I turn off auto updates?
  6. When I type in LOCALHOST/xammp i get this error message: I am using Windows XP sp2 and tried adding ports 80, 443, and 3306. Also something I noticed, when I go to the Xammp Control Panal Application and click on Mysql Admin, under MyODBC it reads "Not Found Driver 3.51 Not Found" Any ideas?
  7. I am taking the suggestions of other Xisto members, and trying my scripts out through Xammp before putting them on my website. Right now, I am reading the online book 'Practical PHP Programming' and learning some more about MySql, and trying to figure out how to use it without the PHPAdmin in Astahosts Cpanel. The book talks about a MySql Monitor, but I have no clue how to access that. I am using Xammp, and I have all my services running, but I'm just not sure how to use the MySql part of it. Is there a special way?
  8. Though I'm not a big Zelda fan, I'd have to say it would be the NES version, the gold one. I like my old childhood games, don't like to grow up I guess. And, I too remember Funcoland. It got changed to a Gamestop around my way, so I'm still happy. The Newest Zelda looks good too. I'm kinda looking forward to that also.
  9. I have an Xisto account, which I am loving by the way, and was wondering if we are allowed to have Paypal on our site. I don't want to use any of those pay-per- <- snipped -> or anything, just a simple paypal kinda thing. I am also going to be putting a small Xisto banner on my site as well.}
  10. Grafitti mentioned something along the lines I was thinking. I know people are saying back up stuff, but thats an awful lot of 'stuff' to be backing up. With a HDD that huge, they would have to make some modification to the computer I would think. I know my fathers computer just overheated for lack of cooling. What would a mammoth like 750 gig HDD do to a machine? I can see something like this, at least for now, being used for business. Maybe someday, in the future, this will become available for home markets, but I wouldnt be getting one, though it would be nice
  11. See thats where I think Im making my mistake. I have Xammp installed on machine, but the main reason I did it was so I could see PHP (so I thought). I have been doing all my coding straight on my Xisto site. Now I know that I should be doing it through Xammp first.
  12. Ok, I've tried the two different ways of placing the quotes, but it was still the same results. The other things, adding 'OR DIE' and echoing out the query and putting it into a sql command prompt, i just dont understand. But one thing I don't understand is, I went through and put in all the data into my registration page on my website, and it said thank you for registering, there was no errors there. I'm lost.
  13. Ok.. I'm a newbie at this so I'll give you all the coding. Here are the scripts for the files given at the beginning. config.php <?php$nickname = "lonebyrd";$password = "mypassword";$database = "lonebyrd_FTV";$server = "localhost";?> login.php <?phpmysql_connect($server, $nickname, $password) or die (mysql_error());mysql_select_db($database) or die (mysql_error());?> functions.php <?phpfunction generateCode($length = 10){ $password=""; $char = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; srand((double)microtime()*1000000); for ($i=0; $i<$length; $i++) { $password = $password . substr ($chars, rand() % strlen($chars), 1); } return $password; } ?> registration.php <?phprequire("config.php");include("login.php");require("functions.php");?><HTML><HEAD><TITLE>Registration---Fantasized TeleVision</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><style type="text/css">BODY { background:#808080; text-align:center; font-family:Verdana, Arial; font-weight:bold; font-size:12px; color:#FF0000; } register_box { border: 1px solid #0000A0; background-color: #0000FF; font-family: Verdana, Arial; font-weight: bold; font-size: 9px; color: #FF0000; top margin: 200px left margin: 200px }</style></head><body><?php// The following line verifies which action is requested by the user// by default is setting to new if nothing is requested$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : "new";switch($action) { //-------------------------------------- // [New Registration] //-------------------------------------- case "new": if(!isset($_POST['register'])) { echo " <form action='registration.php' method='POST'> Name: <br /> <input type='text' name='name' class='register_box'> <br /> Email: <br /> <input type='text' name='email' class='register_box'> <br /> Nickname: <br /> <input type='text' name='nickname' class='register_box'> <br /> Password: <br /> <input type='password' name='password' class='register_box'> <br /> Location: <br /> <input type='text' name='location' class='register_box'> <br /> Gender: <br /> <input type='text' name='gender' class='register_box'> <br /> Date_of_Birth: <br /> <input type='date' name='date_of_birth' class='register_box'> <br /> <input type='submit' name='register' value='New Registration!' class='register_box'> <input type='hidden' name='action' value='new'> </form> "; } elseif(isset($_POST['register'])) { $name = mysql_real_escape_string($_POST['ad_name']); $email = mysql_real_escape_string($_POST['ad_email']); $nickname = mysql_real_escape_string ($_POST['ad_nickname']); $password = mysql_real_escape_string($_POST['ad_password']); $location = mysql_real_escape_string($_POST['ad_location']); $gender = mysql_real_escape_string ($_POST['ad_gender']); $date_of_birth = mysql_real_escape_string ($_POST['ad_date_of_birth']); $activation_code = generateCode(25); $nameq = "SELECT ad_name FROM registration WHERE ad_name = $name LIMIT 1"; $emailq = "SELECT ad_email FROM registration WHERE ad_email = $email LIMIT 1"; $nicknameq = "SELECT ad_nickname FROM registration WHERE ad_nickname = $nickname LIMIT 1"; } //put errors into an array I need to change these if I change the db if(empty($name)) { $errors[] = "The name field was blank! <br />"; } if(mysql_num_rows(mysql_query($nameq)) > 0) { $errors[] = "The name given is already in use! Please try another one! <br />"; } if(empty($email)) { $errors[] = "The email field was blank! <br />"; } if(mysql_num_rows(mysql_query($emailq)) > 0) { $errors[] = "The email given is already in use! Please try another one! <br />"; } if(empty($nickname)) { $errors[] = "The nickname field was blank! <br />"; } if(mysql_num_rows(mysql_query($nicknameq))>0) { $error[] = "That nickname is already taken. Please try another one.<br />"; } if(empty($password)) { $errors[] = "The password field was blank! <br />"; } if(empty($location)) { $errors[] = "The location field was blank! <br />"; } if(empty($gender)) { $errors[] = "The gender field was blank! <br />"; } if(empty($date_of_birth)) { $errors [] = "No date of birth was entered! <br />"; } if(count($errors) > 0) { foreach($errors as $err) { echo $err; } } else { $sqlq = "INSERT INTO registration (ad_name, ad_email, ad_nickname, ad_password, ad_location, ad_gender, ad_date_of_birth, is_activated, activation_code)"; $sqlq .= " VALUES ('$name', '$email', '$nickname', '".md5($password)."', '$location', '$gender', '$date_of_birth', '0', '$activation_code')"; mysql_query($sqlq) or die(mysql_error()); echo "Thanks for registering! You will recieve an email shortly containing your validation code, and a link to activate your account!"; mail($email, "New Registration, ftv.astahost.com;, "Thanks for registering on FTV.\n\nHere are your login details:\n\nNickname: ".$nickname."\n\nPassword: ".$password."\n\nIn order to login and gain full access, you must validate your account.\n\nClick here to validate:\n\nhttp://forums.xisto.com/no_longer_exists/;; // \n is equal to a new line// in your original version you use the variable user to send the nickname data// to your activation file and in that file you check for a variable nickname, //so it never work. } } ?></body></html> I also have an activation.php file for after the registration process. If you have any suggestions, or see anything wrong with this, please let me know.
  14. I have my database info in different files. But at the top of the script, I have it try to locate it. Maybe I am doing it wrong. Here is what it says: <?phprequire("config.php");include("login.php");require("functions.php");?>
  15. I'm still trying to figure out my login/registration page. It's probably a problem with my database itself. I have come up with this error on my webpage: This is the code for that line: if(mysql_num_rows(mysql_query($nameq)) > 0) Before that is probably what matters so I will give that too. Here it is: elseif(isset($_POST['register'])) { $name = mysql_real_escape_string($_POST['ad_name']); $email = mysql_real_escape_string($_POST['ad_email']); $nickname = mysql_real_escape_string ($_POST['ad_nickname']); $password = mysql_real_escape_string($_POST['ad_password']); $location = mysql_real_escape_string($_POST['ad_location']); $gender = mysql_real_escape_string ($_POST['ad_gender']); $date_of_birth = mysql_real_escape_string ($_POST['ad_date_of_birth']); $activation_code = generateCode(25); $nameq = "SELECT ad_name FROM registration WHERE ad_name = $name LIMIT 1"; $emailq = "SELECT ad_email FROM registration WHERE ad_email = $email LIMIT 1"; $nicknameq = "SELECT ad_nickname FROM registration WHERE ad_nickname = $nickname LIMIT 1"; } //put errors into an array I need to change these if I change the db if(empty($name)) { $errors[] = "The name field was blank! <br />"; } if(mysql_num_rows(mysql_query($nameq)) > 0) { $errors[] = "The name given is already in use! Please try another one! <br />"; Like I said, it's probably a problem in the way my database is set-up but, I am very new to all this.
  16. m^e.. That link you gave doesn't seem to be working. But I deleted MD5 file, and after a couple of tries, I was finally able to install Xammp. I guess that means there is something wrong with whatever this MD5 thing is which is why I want to check out that link. Can you give me another link, something that will work similar to the one above.
  17. So let me get this straight. You are saying I should remove the MD5 file that appears in my file types? Just double checking before I do this, don't want to do anything that will hurt my computer as I am not as I am not a computer guru like many of the people here are.
  18. If anyone goes into Start>Control Panel>Folder Options>File Types in Windows XP, there should be a file type named MD5 File with the Extension MD5. My problem is, that it opens with Windows Media Player, and it is not supposed to. I don't know why someone just can't check this under folder options to see what it opens with. I'm not looking for something for a specific file, I'm looking for the whole MD5 file type. I can't explain it any clearer. If you just look where I explained in the first sentance, it is a file type I am looking for.
  19. Somehow I changed how an MD5 file gets opened and it now gets opened with windows media player. I've gone to Control Panel>Folder Options>File Types, but there is no restore to default. The only restore to default is under Folder Options>General, and I've tried that and it doesn't change it. I am trying to re-install my Xammp because it isn't working, and Xammp installer opens with an MD5 file, so I have a problem here. Does anyone know the program that opens an MD5 file for Windows XP?
  20. I have a very wide range to choose from. I don't have any one favorite but here are some of my most liked:Suicidal Tendencies, Indigo Girls, Ani DiFranco, Limp Bizkit, Linkin Park, Staind, Disturbed, Eminem, Incubus, System of the Down, Metallica, The Beatles, and The Monkees.
  21. I got my Xisto account in hopes of making a multi-player, online, text-based game in real time. What I need help with is the programming side of things, a little advice really. I talk to the maker of a similar type game that I play, and he suggested I learn PHP with MySQL and ASP, and I cant really remember if he said anything else. I have been playing around a little with PHP and only dabbled with MySQL, but I know nothing of ASP except that it stands for Active Server Pages.So basically, the advice I'm looking for is, what kinds of scripting/coding would people think I should use for this type of game? I plan on having a shoutbox somewhere, some kind of forum-like thing, it would have many menus to choose from with sub-catagories. There would be pictures involved also, and definitly it would need a registration/login page and some way to track users. There is more involved, but its late and I'm getting sleepy. With that info, what do people think? Maybe I'm asking to much, but thanks for any input.
  22. I took up Tang Soo Do for awhile, but for lack of money I had to quit. My brother-in-law was my teacher. He is a 4th degree black belt and had his own school, but moved 5 states away, and he let me take classes for little or no money. Now, I don't have enough money to go to another school. I would love to take up classes again. Martial arts was a great way to keep fit, and it made me feel more confident about myself. And if I were ever in a dangerous situation I know I would be able to defend myself.
  23. I'm new to all this web hosting stuff, but I've tried geosites before, and boy did I hate that. I have a site now with Xisto, and I'm still trying to figure out all the features that are offered in the Cpanel. I mean its Great! When I get the hang of everything that Asta has to offer, I don't know what I'm gonna do. I'm having so much fun with learning my coding, AND learning all the cool features. Geocites doesn't even compare to Xisto. Xisto has an awsome Cpanel, whereas Geo only has a filemanager. I just love this place and the great community that comes with it!
  24. Does anyone know if either Notepad2 or Notepad++ had any debugging or something like that for anything other that HTML. I am looking for something for PHP besides PHP Designer. Designer isn't really helping me. It's not telling me about closing my braces as people have pointed out to me, and it seems to be a little over my head. I know Notepad++ says its compatible with things like perl and javascript on it's homepage. I'm just looking for some additional help. Don't get me wrong, I like PHP Designer, but I could use all the help I can get until I can catch up on some web reading.
  25. I have to disagree with you. My grandfather is an artist, painting with oils, acrilics. But one thing he does the best is bring out emotions through pictures. He has taken some of the most beautiful pictures I have ever seen. And if noone is around to see them, they would never have know. He is creating a small piece of nature, landscaped, whatever, and bringing up emotions in people. Have you ever seen the morning dew on the petal of a rose close up in the sunlight? It's beautiful. That is what my grandfather does. And for that, I consider him an artist.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.