how it will possible in PHP [error reporting script]

Discussion in 'PHP' started by ironmankho, Jul 25, 2008.

  1. #1
    i am 100% it will be done in Php but how ? i have no idea ...

    please guide me step by step

    script structure :

    a little program that send a mail to admin that link is broken , abuse article or something wrong


    help required :

    1 - a php code that detect page location like e.g this thread location is
    http://forums.digitalpoint.com/showthread.php?t=949982

    check box's : broken link [ ] - abuse article [ ] - something wrong[ ]

    [send]



    when user click on send button it will automatic send e-mail to admin
    with following detail . page location - error detail like broken link , abuse article or something wrong .whatever user select


    because i want paste this code in my every page of site

    Thanks a bunch
     
    ironmankho, Jul 25, 2008 IP
  2. abluesoft

    abluesoft Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    idea is onclick the page link it will goes to one php file that will check the page is broken or not (its simple) if it is broken send mail to admin or prepare mail, and redirect to the site home/sitemap page, else redirect the proper page.
     
    abluesoft, Jul 25, 2008 IP
  3. ironmankho

    ironmankho Active Member

    Messages:
    393
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    your idea is right ... but it is not that i want ... i am not talking about broken page ... i am talking about links that are used in article like download files etc...
     
    ironmankho, Jul 25, 2008 IP
  4. Boxerman

    Boxerman Peon

    Messages:
    306
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you basically want a link checker?
     
    Boxerman, Jul 26, 2008 IP
  5. ironmankho

    ironmankho Active Member

    Messages:
    393
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #5
    may be same like this....
     
    ironmankho, Jul 26, 2008 IP
  6. Boxerman

    Boxerman Peon

    Messages:
    306
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    well PM me info etc.. and we chat chat via that
     
    Boxerman, Jul 26, 2008 IP
  7. ironmankho

    ironmankho Active Member

    Messages:
    393
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #7
    [​IMG]
     
    ironmankho, Jul 26, 2008 IP
  8. alhelalat

    alhelalat Member

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #8
    create a new page call it check_link.php copy and paste this code to the page
    then create a herf for this page this way
    <a href="check_link.php?check_link=the-link-you-wanna-check-here">Report broken link</a>
    this script is not tested i just write it so fast
    this script will not send you report only if the link is broken
     
    alhelalat, Jul 26, 2008 IP
  9. ironmankho

    ironmankho Active Member

    Messages:
    393
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #9
    Thanks man posting 1st post for me .... i am checking to this then write comment about it
     
    ironmankho, Jul 26, 2008 IP
  10. alhelalat

    alhelalat Member

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #10
    you welcome
    if you still have problem let me know
     
    alhelalat, Jul 27, 2008 IP