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: This class fixes Proto email output

This class will repair all the html files in the zip file emailed from
Adobe Proto on the iPad (maybe others). The zip file will stay intact,
needs the ZipArchive class with PHP
Date: 10 months 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);
}
?>

For more information send a message to info at phpclasses dot org.