SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Apr 2001
    Location
    Arizona
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am just beginning to learn PHP4 and want to know what program is the best to use to check the code for accuracy? I am using HTML Kit to write the code. Thank you.

    Viper420

  2. #2
    SitePoint Evangelist
    Join Date
    Feb 2000
    Location
    England
    Posts
    568
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i don't know of any such thing, just run it that shows you instantly what is wrong. Error reporting is not bad in php or so i have found anyway.

  3. #3
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By checking for accuracy, what do you mean? for syntax error or for logic part of your code?

    + For lexical errors (like highlighting the keywords/functions), use some enhanced text editor, my favourite one is www.EditPlus.com
    + For parse errors, just upload and run it (or just run it use php binary), php will yell if there're any parse error.
    + About logical errors (like you expect to get 2 and you get 3), that's hard to catch these errors. One way is debugging (simplest: print out the result at different locations in your code and compare with what you have in mind)

    Hope this helps
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  4. #4
    SitePoint Member
    Join Date
    Apr 2001
    Location
    Arizona
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for that link...I did mean syntax errors.


    Viper420


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
  •