Jump to content


Fatal Error: Class 'com' Not Found In C:\program Files\


  • Please log in to reply
2 replies to this topic

#1 adi2012



  • New Members
  • Pip
  • 1 posts

Posted 12 November 2012 - 07:31 AM


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');
return $file->Size();........"

Can anyone help me with this?

Thank you! Adi

#2 requinix


    Dark Administrator

  • Administrators
  • 7,849 posts
  • LocationWA

Posted 12 November 2012 - 09:53 AM

Are you running PHP >=5.3.15 or >=5.4.5? COM isn't built-in anymore - you need the php_com_dotnet.dll extension enabled.
Monkeys on typewriters may have a hard time writing Shakespeare, but they sure had no problem writing IP.Board.

#3 trq


    Advanced Member

  • Staff Alumni
  • 31,041 posts

Posted 12 November 2012 - 10:25 AM

There are better ways of accessing a files size without using COM as well. See file_size.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users