PHP Classes

File: proto.php

Recommend this page to a friend!
  Classes of Karl Holz   Proto Rewired   proto.php   Download  
File: proto.php
Role: Example script
Content type: text/plain
Description: shell script
Class: Proto Rewired
Fix Adobe Proto's malformed XHTML 5 documents
Author: By
Last change: Update of proto.php
Date: 1 year ago
Size: 481 bytes
 

Contents

Class file image Download
#!/Applications/MAMP/bin/php/php5.3.6/bin/php
<?php
require_once 'ProtoFixer.php';

if (
$argc != 2 || in_array($argv[1], array('--help', '-help', '-h', '-?'))) {
   
?>

This is a command line PHP script with one option.

  Usage:
  <?php echo $argv[0].' <file>'; ?>

  <?php echo '<file>'; ?> is a file you emailed from Proto.
  With the --help, -help, -h, or -? options, you can get this help.
 
<?php
 
exit();
} else {
   
$file=$argv[1];
   
$p = new ProtoRewired($file);
}
?>