Jump to content

SFB

Members
  • Posts

    282
  • Joined

  • Last visited

Everything posted by SFB

  1. SFB

    captcha test

    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. SFB

    captcha test

    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. SFB

    captcha test

    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. SFB

    captcha test

    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. SFB

    captcha test

    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. SFB

    captcha test

    <?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. SFB

    captcha test

    I was planning on making my own or customizing one but i always like to look at two or three good scrips first.
  8. SFB

    captcha test

    ha ha, i doubt saying googler will help me.
  9. SFB

    captcha test

    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
  10. SFB

    captcha test

    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
  11. SFB

    samy is my hero

    Vista sounds realy cool but like every other MS project there is going to be bugs
  12. 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>
  13. SFB

    samy is my hero

    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!
  14. SFB

    Masking URL

    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
  15. SFB

    samy is my hero

    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"
  16. if you really dont want the user to take your code you can use flash to make your website.
  17. 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
  18. SFB

    samy is my hero

    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
  19. SFB

    samy is my hero

    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.
  20. 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.
  21. SFB

    Suggestions needed

    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.
  22. SFB

    Suggestions needed

    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.
  23. SFB

    Suggestions needed

    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.
×
×
  • Create New...