SitePoint Sponsor

User Tag List

Results 1 to 22 of 22
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation dont laugh, too easy for you. but i m new

    I got the sample code from here for image verification to prevent spam http://www.reconn.us/random_image.html

    I copied exact same code for this website but it's not working.
    www.desimatchup.com/random_image.html
    Last edited by doran_doran; Jul 2, 2007 at 21:46. Reason: making the details little clear

  2. #2
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually what do you want to do? Image verification means? Do you want to create thumbnails of an uploaded image or resize it or what? I saw that code does something like image manipulation, right?
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i want user to put the image verification before clicking send on the form. it should look like this.

    http://www.reconn.us/random_sample.php

  4. #4
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am trying this code but having another problem. I think the problem is they dont explain the process how to implement their source code properly.. too much guess work.

    http://www.planet-source-code.com/vb...d=739&lngWId=8

    here is my link
    http://www.desimatchup.com/random_image_2.php

  5. #5
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made it working in my system. You need to create a folder named "fonts" and puts at least 10 fonts named 1 to 10. And just download the image noise.png from their site and store it in the "images" folder then it must work for you.

    I can run this code and generating the random image with random 6 characters.

    Cheers!
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  6. #6
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i tried this link too but again no images showing

    http://www.desimatchup.com/form.php

    source code: http://www.weberdev.com/get_example-4439.html

    i checked gd and it's installed on the server.

  7. #7
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. do i need to copy and paste 10 different fonts form windows font folder to server ( the ttf files)
    2. I gave 3 links which site you were referring to for png file. do u have a link ?

    i m sorry, i am very very new to php. n thanks for u help.

  8. #8
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    did that but still not working

  9. #9
    SitePoint Wizard cranial-bore's Avatar
    Join Date
    Jan 2002
    Location
    Australia
    Posts
    2,634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The PHP is showing up in the source code of your page. It's not being parsed for some reason.

  10. #10
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i put the fonts in the fonts directory
    i put the png file in the images folder

    still not working. hmm

  11. #11
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes as cranial-bore reported you have following error in your code:
    Code:
    Validation string not valid! Please try again!'; else { echo '
    Your string is valid!
    '; '//do something with the data } } ?>
    So please check the code that you have pasted in your system. And also check whether GD library is installed in your running system or not. It must work because it is working for me the same code copy and paste.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  12. #12
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here i have attached my working code please give a try with this code if this works then its fine.
    Attached Files Attached Files
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  13. #13
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you rajug. I will try your code when I go home.

    Again Thanks

  14. #14
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The zip file says pending approval. when are they going to approve this ?

  15. #15
    SitePoint Wizard bronze trophy Immerse's Avatar
    Join Date
    Mar 2006
    Location
    Netherlands
    Posts
    1,661
    Mentioned
    7 Post(s)
    Tagged
    1 Thread(s)
    Your random_image.php file is not being parsed as PHP as it's missing PHP tags in it. Try putting <?php at the very top of the file, and ?> at the very bottom of the file.

  16. #16
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,445
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by doran_doran
    when are they going to approve this ?
    Have patience. These things can take some time, but attachments usually get approved within 24 hours. My bet is it will be approved soon.

  17. #17
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This example is working. But I like the have the originally posted code in working condition.

    http://www.desimatchup.com/form.php

    source code: http://www.weberdev.com/get_example-4439.html

  18. #18
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you try that attached file or not approved yet?

    I don't know why the code that i provided you does not work in your system. I am running that code perfectly well and working for me.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  19. #19
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Rajug,

    they have not approved your attachment. i HAVE no idea why they are taking for ever. I think it has to do with font file. as soon as they approved it i will try it.

    Thanks for the follow up.

    These two methods are working. But I like the first technology (the one i cant get it work)
    method # 2 >> http://www.desimatchup.com/form.php
    method # 3 >> http://www.desimatchup.com/random_image_2.php

  20. #20
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    rajug,

    can you please e-mail me the attachments ? FORUM ONWERS ARE TAKING UN-NECESARILY LONG TIME TO TO APPROVE YOUR ATTACHMENT. I have been trying and its not working. something wrong with the code i uploaded. my e=mail is doran_doran{at}Yah00.c0m

    Thanks

  21. #21
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am now able to download the attachment. I tried it but I dont see the image with letters. hmm. now i am confused. It doesnt give me any errors either.

    http://www.desimatchup.com/image-site-test.php

  22. #22
    SitePoint Evangelist
    Join Date
    Sep 2004
    Location
    Oregon
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Visiting this website might help:
    http://www.thewebhelp.com/php/php_co...ge_validation/

    You may want to make sure you have PHP Enabled, and you are using the PHP Coding (not just the HTML you get from Viewing the Source).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •