MC2012
MC2012

Reputation: 53

Fatal error: Class 'COM' not found in C:\Program Files\

I have a big problem. i have this error

"Fatal error: Class 'COM' not found in C:\Program Files\EasyPHP-12.1\www\eu\include\general.php on line 2768"

and when I go to that line I see this:

" if (PHP_OS=='WINNT')
{
$filesystem=new COM('Scripting.FileSystemObject');
$file=$filesystem->GetFile($path);
return $file->Size();........"

Can anyone help me with this?

Thank you! Adi

Upvotes: 0

Views: 5012

Answers (3)

YesItsMe
YesItsMe

Reputation: 1779

Open php.ini with a note editor (ctrl+F) search for Dynamic Extensions after that add extension=com_dotnet

Upvotes: 0

atabak
atabak

Reputation: 193

add
extension=php_com_dotnet.dll
on php.ini

Upvotes: 0

Leri
Leri

Reputation: 12535

In php.ini uncomment line: ;extension=php_com_dotnet.dll (remove ;) and restart server. Because it's extension for php.

By the way, in your version this line may be missing. There's a bug.

Upvotes: 2

Related Questions