News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

What is file_check.php?

Started by N3RVE, August 05, 2009, 10:08:59 AM

Previous topic - Next topic

N3RVE

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]
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

Bancherd

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.

???

N3RVE

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

Bancherd

Here is one of the files: /Sources/LoginOut.php  (SMF1.1.10)

Thanks for checking into this.  :D

Yigal

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

N3RVE

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

Bancherd

Quote from: [n3rve] 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]

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

fizanos

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/

Arantor

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.

H

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)
                             

Advertisement: