MIKESTOWE.COM

Just another php, religion, and politics weblog

phpScanner – 1.3

What is phpScanner
You’ve just finished building a large php based site, and the client wants some changes made. So sure enough, you make the changes and push them live, only to get a call from the client about some pages not working. Sure enough, that little change you made messed up some obscure, buried page which is now throwing errors or worse.

That’s where phpScanner comes in. With just the click of a mouse (ok, you have to enter some basic information, like the url too), phpScanner will scan the full site (restricted to that domain) checking to see if anything “suspicious” comes up. In the event that it throws a visible text error, phpScanner will even tell you what error it is throwing.

Pages are categorized as follows, depending on what phpScanner finds:
No Errors – page appears to be fully functional
Probable Error – something feels off, might be nothing, but check it out
Error – uh oh, something’s going on here
Skipped – phpScanner cannot verify .mp3s, .movs, flash, etc generated by php
Unable to Check Errors – eg the page could not be loaded, server not found, etc

Installing phpScanner

phpScanner can quickly be installed on any server running PHP 5.

To install phpScanner:

  1. Download and unzip the file on a php based environment (see, told you it was easy)

Bugs

  • No known bugs at this time


Awards (Yay)
- listed in the order received
Famous Software Download Famous Software Download


Usage

phpScanner is now being released under the GPL version 2 license. If you do find phpScanner to be useful, or have any suggestions or ideas, please let me know


Download

phpScanner  (click to download)
A Rendered Page Error Checker for PHP
version: 1.3
size: 134.09kb

http://github.com/mikestowe/phpScanner

http://www.phpclasses.org/php-scanner

Facebook Twitter Linkedin Digg Reddit Stumbleupon Tumblr Posterous Email Snailmail

6 Responses to “phpScanner – 1.3”

  • Stefan says:

    Is there a problem if the address in link is relative – <a href = cennik.html …

    Warning: file_get_contents(http://www.latky.sk/cennik.htm) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/pdnoviny/public_html/test/scanerweb/phpScanner.php on line 70

    • mike says:

      Hey Stefan, thanks for pointing that out! These items have been corrected in version 1.3. If you find anything else just let me know :)

      Thanks again,
      Mike 8)

      edited 9/22/2010 @ 9:46PM

  • Stefan says:

    states:

    subweb – http://www.latky.sk/rd/kocanda.htm -> kocanda.htm file contains: a relative link: cennik.htm. The cennik.htm there is ok!

  • […] Hace unos días les contabamos sobre el Antivirus PHP que podiamos utilizar para detectar código malisioso dentro de nuestros sitios. Siguiendo por el camino de las clases útiles para mejorar el funcionamiento y la seguridad de nuestros proyectos, les traemos PHP Scanner. […]

  • very cool script php scanner, thanks! cant you make it scan a web server directory instead of a URL?

    Thanks!

    • mike says:

      Hey Marcio,
      The problem is the PHP Scanner scans rendered scripts for errors, which means the files it would scan in directories would need to be stand alone (ie a views/ folder in Zend Framework would return several broken scripts). Also, runkit would need to be installed on the machine to test the script as a fatal error would cause the entire script to stop – as such just easier to scan a url – although you can always use the IP address or localhost if it’s on your machine.

      Hope that helps,
      Mike

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>