Jump to content

SFB

Members
  • Posts

    282
  • Joined

  • Last visited

Posts posted by SFB

  1. i got it working for the most part now. about 15% of the time i would guess, a letter/number overlaps more than i want it to. i am narrowed down the range of where the letters can be and how large/small they can be but i dont want to do that any more. i think i should add some space between them but i want them to overlap sometimes so it would be harder for a bot to figure outhow would i choose a random number but omit certin numbers?i could just replace the number but then certin numbers would occur more often.

  2. ok so i uploaded the fonts and named them font(1-10). then i went and did this(for ($i = 1; $i <= 6; $i++) { $font[$i] = "font".rand(1,10);}that way for each letter i can have a random choice of 10 fonts. for some reason i cant get all of my letters/numbers to show up at onece. i am 99% sure that all the fonts are .ttfi moved the location of the image to http://snowforts.ath.cx/captcha/image.phpedit: oops why did i originally write rand(75,85) i ment 1,10

  3. Nice captcha SFB, but the font thing isnt working. Is it possible to make the letters in bold and italics and such?
    i dont know how to get different fonts. I thought 1-5 were different fonts but they seem to be just different sizes. I cant figure out how to rotate a letter eather. I will keep looking.
  4. That would probably work. But don't put the string directly in a cookie, just use the session and make sure that both session.use_cookies and session.use_only_cookies are enabled.
    ok thanksthis is what i have so far. i need to work with fonts, letter rotation, background garbage, and colorshttp://snowforts.ath.cx/image.php
  5. thanks for the suggestions. i am making this one step at a time. currently i am working on the image. i got to figure out how to add a custom fonts but otherwise its going good. would it work to set the code in a session and then look at the session and if it matches then destroy the session so they cant use it again? it seems like that may be unsecure but i thought i would ask

  6. <?phpfor ($i = 1; $i <= 6; $i++) {  // Create a random number between 1 and 3  $value = rand(1,3);  if($value == "1"){    //Generate a lower-case letter omitting l & add it to string    $char = chr(rand(97, 122));    $code .= $char;  }  if($value == "2"){    //Generate a number & add it to string    $char = rand(2, 9);    $code .= $char;  }  if($value == "3"){     //Generate a upper-case letter & add it to string     $char = chr(rand(65, 90));     $code .= $char;  }}echo"$code";?>

    here is a script that i made that will generate a random number and letter code that has both upper and lower case letters. now all i have to do is everything else... i thought this was going to be the hard part but it wasnt so i'm happy about that. i'm off to learn how to use the gd library!ok now i have a working image... now got to play with it to make it more secure. then i will impliment my image into my message board!

    <?phpfor ($i = 1; $i <= 6; $i++) {  // Create a random number between 1 and 3  $value = rand(1,3);  if($value == "1"){    //Generate a lower-case letter omitting l & add it to string    $char = chr(rand(97, 122));    $code .= $char;  }  if($value == "2"){    //Generate a number & add it to string    $char = rand(2, 9);    $code .= $char;  }  if($value == "3"){     //Generate a upper-case letter & add it to string     $char = chr(rand(65, 90));     $code .= $char;  }}$randomcode = str_split($code);// Create the image with width=150 and height=40$random_image = imagecreate(150,40);// Set some colors$black = imagecolorallocate ($random_image, 0, 0, 0);$white = imagecolorallocate ($random_image, 255, 255, 255);// backgroudn blackimagefill($random_image, 0, 0, $black);// write the 6 charictors in various fontsimagechar($random_image, 4, 20, 13, $randomcode[0] ,$white);imagechar($random_image, 5, 40, 13, $randomcode[1] ,$white);imagechar($random_image, 3, 60, 13, $randomcode[2] ,$white);imagechar($random_image, 4, 80, 13, $randomcode[3] ,$white);imagechar($random_image, 5, 100, 13, $randomcode[4] ,$white);imagechar($random_image, 3, 120, 13, $randomcode[5] ,$white);//Now we send the picture to the Browserheader("Content-type: image/jpeg");imagejpeg($random_image);?>

  7. If you're willing to build your own version, I think that you could actually do it fairly easily by using PHP's Image functions...just create a random string of text, output it as an image, and then ask them what the string is.
    I was planning on making my own or customizing one but i always like to look at two or three good scrips first.
  8. search the forum, or google it. I think that's the third request.
    Ok fine, i will search myself. its just most of the time someone know one that works well and can pass it on. that way i dont have to sift through bad results. someone should teach me how to google. or mabey to be less specific. i never find what i want on a search engin. i end up making it myself :)edit: The reason i dont just search the forum is because i normally read through the majority of the php, css, html and general posts. i didnt rember one but i have missed some lately after the hacking because i have found more things to do during that time. anyways found this post http://w3schools.invisionzone.com/index.ph...&hl=captcha. i think this thread can be closed if anyone feels like closing it
  9. I was wondering if anyone knew of a captcha test script. i need somewhere to start from. I suppose someone could write one up for me but I would rather have them spend their time on someone that needs the help more. so if someone could direct me to a good one, that would be great. thanks

  10. MS is the whole reason this topic exists...if their stupid browser didn't execute garbage code then this situation would never have happened.Can;t wait for IE6 to gone. I am counting down the days til Vista and IE7 are released.
    Vista sounds realy cool but like every other MS project there is going to be bugs :)
  11. you have to put the <?php ?> before the <html> and make sure there is no extra lines before the php either. <?php has to be the first 5 characters of the file.
    Humm i didnt know that. It has always worked fror me to do something like
    <html><head><?php $pgtitle = 'my test page';$content = 'this is me testing php'; ?><title><?php echo"$pgtitle";?></title></head><body><?phpecho"$content";?></body></html>

  12. That's just Microsoft's convention, the same reason they called "their" disk operating system MS-DOS.
    wow we are getting off topic but there is one more thing that factored into their abbreviation MSN. MN is the abbreviation of a state! the very state i live in!
  13. if you want a short and orginized url you could put all of your html pages in one folder. the only major problem with this is orginization for you. you will have many files in the same folder and it may get confusing. one more thing you could try is creating a subdomain for certin things. lets say you have a bunch of football pages on your school site. the school could create a url that looks like http://football.schoolsite.org and then have their football pages all in one folder. the hackers(which you most likely dont have) wont know where the folder is when you only use one. so if you had a debate team and they wanted a page you could go like debate.schoolsite.org one drawback to this is that search engines may consider it a different site and the other is more programing. I just thought i would throw some more ideas out there for you

  14. I believe that MSN just stands for the MicroSoft Network.
    :) yep your right...silly me, i'm like everyone else that wants a word for every letter of an abbreviation. i suppose soft is a word but yet it is part of another word. lol think how dumb it would sound to say "talk to you on MN" or "hey you finally got MN"
  15. why isn't there any replys from admins here or on my email,, I sent them my questions about the certification before more than a week and still no answers..
    I think if you are realy serious about web design (html,css,js,...) you should design some websites as examples of what you can do for a client. it will be of more value to them than some online certificate saying that you know html. after seeing your designs may be like well i like this one but mabey change this part of it. and then you have a job :)
  16. My favorite one was "Google was the best idea from Mircosoft in along time..."OMG, were could you even get an idea like that. I didn't even say anything back, I just went into shock... give me awhile to thing about what happened.
    I bet if you told them that MSN stood for Microsoft Search Network and Microsoft couldn't own Google because they already have a search engine that is compeating against it, they would be like nope why would Microsoft compete against itself and go on believing that google is owned by MicrosoftMSNBC = Microsoft Network with the National Broadcasting Corporation
  17. Also, I can't access that text file because it appears that your server is not responding to requests. It appears to be running, but it won't send a response back.
    same thing here. earlier today i got an error message but now i just get a blank page. I think dan must be working tonight.
  18. I agree with reportingsjr, windows is easy to use but if something doesnt work "out of the box" then it is slightly more complicated. how many average windows users could figure out that to run "good" games you may just have to install the actual drivers for your graphics card, not just the windows ones. I suppose the average user would go look up on some website and figure it out eventually. google "my game doesnt work" lolin my opinion macs are easy to use as well. i grew up on a mac. i had no problems figuring out how to do simple tasks. when i got windows it was like what is the purpose of a start button? why do i have a my computer icon? why do the drop down lists only appear when programs were running? i was very bised tward macs and i still am. many people use windows because thats what they have and they dont want to change.

  19. I think he was refering to me, considering I had the only post there. They like you.. not me :).Can you change the color of the background so its a bit darker? I think a nice blue tint would be nice. Not too blue though.
    ok sounds good. this blue looks good on my computer but at school and the library it looks different. so i should change it. could somone look into why IE puts a space inbetween my links and content section on my New Layout I cant figure it out. there isnt any padding or margin or anything as far as i can tell so i dont know why IE does this. IE is always like this to me. it didnt understand 100% of an element that was 100% of the page. it reverted back auto where it choose the height. o well that was a previous layout.
  20. How much will it cost for you to come to my town and build me a snow fort this winter?I'm horrible at making those things. I can design them in my head, but it never quite works out.Kind of like my web programming . . .
    I dont make them for other people but I will tell you that i spend a lot of time out side working on them. most of the time i just make a simple curved wall and a snow dome. it is simple but looks good from the road.
  21. what was my feedback again??? :)
    I dont know... i didnt do anything to the layout untill i posted again. I am working on a new style again. it is worthy enough to be seen by human eyes but still doesnt work in IE. there is a space inbetween the links and the body where there shouldnt be one.
  22. New font looks nice.
    I didnt change the font. it had always been verdana. i have an error in my css somewhere. cant seem to find it but opera decides to display it slightly differently each time i load it. I will change the colors but the layout feels like it needs something. o yeah and the login is going to go. it is a pointless script anyways.Edit: I will be working on the new layout for about three hours starting from the time of this post.
×
×
  • Create New...