Advertisement:

Author Topic: What is file_check.php?  (Read 22288 times)

Offline N3RVE

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,907
  • Gender: Male
    • N3RVE.COM
What is file_check.php?
« on: August 05, 2009, 10:08:59 AM »
The file, "file_check.php" is a tool used to check SMF source files for common errors like files not beginning with the php opening tag (<?php) and not ending with closing tags (?>), it also checks for files saved as UTF-8 BOM.

This tool can be used to diagnose forums with issues such as CAPCTHA verification images not showing, quote problems, etc. Simply upload the file to the Forum's root directory (the same directory as SSI.php), and navigate your browser to:

http://www.example.com/forum/file_check.php

-[n3rve]
« Last Edit: August 16, 2009, 09:04:21 AM by [n3rve] »
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote
“Somewhere, something incredible is waiting to be known.” - Carl Sagan

Offline Bancherd

  • Jr. Member
  • **
  • Posts: 283
    • Thai Koi Keepers' Home Page
Re: What is file_check.php?
« Reply #1 on: August 05, 2009, 06:04:15 PM »
Hmm..I ran the file on my site and it told me that there were many xxx.php files such as index.php that did not end with (?>).  But when I opened the files in question using "gedit", I did not find anything unusual; (?>) was at the end of each of the files as it should.

???

Offline N3RVE

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,907
  • Gender: Male
    • N3RVE.COM
Re: What is file_check.php?
« Reply #2 on: August 05, 2009, 06:24:58 PM »
Can you attach one of the files so I can take a look?
Remember, the script is programmed to output an error if '<?php' and '?>' are not on the very first and last lines respectively, so it will definitely report ssi_examples.php seeing that the developers broke out of php mode and ended the file with </html> instead.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote
“Somewhere, something incredible is waiting to be known.” - Carl Sagan

Offline Bancherd

  • Jr. Member
  • **
  • Posts: 283
    • Thai Koi Keepers' Home Page
Re: What is file_check.php?
« Reply #3 on: August 06, 2009, 03:04:53 AM »
Here is one of the files: /Sources/LoginOut.php  (SMF1.1.10)

Thanks for checking into this.  :D

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: What is file_check.php?
« Reply #4 on: August 06, 2009, 03:19:13 AM »
Should this be stickied?
Yigal V.
Contact me by PM

do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Offline N3RVE

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,907
  • Gender: Male
    • N3RVE.COM
Re: What is file_check.php?
« Reply #5 on: August 06, 2009, 03:33:27 AM »
Benchard, that file doesn't end with ?>, there's an extra blank line after the closing tag.
Remove the blank line and run the file_check script again :).

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote
“Somewhere, something incredible is waiting to be known.” - Carl Sagan

Offline Bancherd

  • Jr. Member
  • **
  • Posts: 283
    • Thai Koi Keepers' Home Page
Re: What is file_check.php?
« Reply #6 on: August 06, 2009, 10:27:30 AM »
Benchard, that file doesn't end with ?>, there's an extra blank line after the closing tag.
Remove the blank line and run the file_check script again :).

-[n3rve]

Ah..so..that was the problem! Thanks! :)

Offline fizanos

  • Semi-Newbie
  • *
  • Posts: 42
    • Secrets Forum|Share Business Ideas
Re: What is file_check.php?
« Reply #7 on: November 16, 2009, 10:13:51 AM »
Hello I tried it for mine but the codes are not complete its 5 instead of 6. Pls Help
Secrets of Entrepreneurship
http://www.entrepreneurshipsecret.com/


7 Things to Consider If You Must Go Into Business With a Friend
http://www.gistheadlines.com/7-things-to-consider-if-you-must-go-into-business-with-a-friend/

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,664
    • StoryBB/StoryBB on GitHub
Re: What is file_check.php?
« Reply #8 on: November 16, 2009, 10:45:47 AM »
It has nothing to do with this, fizanos. Please keep the question to its own thread where it will be dealt with in due course.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline H

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,662
  • Gender: Male
Re: What is file_check.php?
« Reply #9 on: November 16, 2009, 04:53:29 PM »
Locking this. If you have a problem please start a new topic so that we can track each problem individually.

Thanks
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)