Crashes horribly on execution: c:\Temp>php windows-file-prope...

Recommend this page to a friend!

      PHP Windows File Attributes  >  All threads  >  Crashes horribly on execution:...  >  (Un) Subscribe thread alerts  
Subject:Crashes horribly on execution:...
Summary:Package rating comment
Date:2020-03-12 21:04:07

Daniel rated this package as follows:

Utility: Bad
Consistency: Good
Documentation: Insufficient
Examples: Insufficient

  1. Crashes horribly on execution:...   Reply   Report abuse  
Picture of Daniel Daniel - 2020-03-12 21:04:07
Crashes horribly on execution:
c:\Temp>php windows-file-propert-2020-02-17\index.php
Fatal error: Uncaught Error: Class 'COM' not found in C:\Temp\windows-file-propert-2020-02-17\windowsFileProperties.php:41
Stack trace:
#0 C:\Temp\windows-file-propert-2020-02-17\windowsFileProperties.php(64): WindowsFileProperties->getFileSystOb()
#1 C:\Temp\windows-file-propert-2020-02-17\windowsFileProperties.php(28): WindowsFileProperties->getRealFileName('C:\\Temp\\Screens...')
#2 C:\Temp\windows-file-propert-2020-02-17\index.php(10): WindowsFileProperties->__construct('C:\\Temp\\Screens...')
#3 {main}
thrown in C:\Temp\windows-file-propert-2020-02-17\windowsFileProperties.php on line 41

Line 41: return new COM("Scripting.FileSystemObject");

The package would retrieve what it says it does and would print it to stdout as HTML. However, it does not allow you to get hold of the information via get() methods which, unfortunately, makes it a curiosity not a tool.
The documentation consists of a single line of code and a jpg of the output, at first I thought it was a joke but I quickly realized that it was all the package could do.
In order to make this a _tool_ you need to give the user a way to retrieve the information you collect about the file, which should be very easy since you have come so far along.
1) Fix the COM error or update your dependencies and prerequisites.
2) Give the use an easy way to retrieve all the different bits of info in an object or via separate get() methods, otherwise it's just useless.

  2. Re: Crashes horribly on execution:...   Reply   Report abuse  
Picture of Hassane Moussa Hassane Moussa - 2020-03-13 10:10:00 - In reply to message 1 from Daniel
Hi Daniel, Well receive very thanks for your comment!


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