Anyone Know Of A Code Tidy For Php Files

Discussion in 'PHP' started by Dee2007, Feb 9, 2013.

  1. #1
    Hi

    Does anyone know of a code tidy for PHP files? Like http://validator.w3.org/ but for PHP.

    I want something that will not only find the errors but will clean up the code like the above does for HTML.

    Thanks in advance

    Dee
     
    Dee2007, Feb 9, 2013 IP
  2. OaldDesign

    OaldDesign Active Member

    Messages:
    448
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I am not sure if you have something like that, that would help. When you create a code in php and have errors you will get the error display it is useful when you learn how to use it right.
    You are welcome to try the site below maybe that would help you:
    http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/v4/syntax-check.php
    The page will not fix the problem, it will just show you where the mistake is.
    There is no page that could fix the problems for you.
     
    OaldDesign, Feb 9, 2013 IP
  3. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #3
    Thank you, I will check out the link, the problem I have is knowing which PHP file the errors relate to, for example I found something a few days ago to check the code of and it found loads of errors, and whilst it tells me the line it doesn't tell me the name of the PHP file that line is in and the site is made up of a TON of PHP files, so manually searching through every single one would take me forever ;)
     
    Dee2007, Feb 9, 2013 IP
  4. OaldDesign

    OaldDesign Active Member

    Messages:
    448
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Could you upload a picture of the error page? maybe if could help i would understand what the problem is
     
    OaldDesign, Feb 9, 2013 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #5
    Just running the page on the site will tell you which file the error is in ans which line it's on.
     
    Rukbat, Feb 12, 2013 IP