Jump to content


Photo

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

easyphp

  • Please log in to reply
2 replies to this topic

#1 adi2012

adi2012

    Newbie

  • New Members
  • Pip
  • 1 posts

Posted 12 November 2012 - 02:31 AM

Hello,

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

#2 requinix

requinix

    Transforming Moderator

  • Moderators
  • 6,032 posts
  • LocationWA

Posted 12 November 2012 - 04: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.

#3 trq

trq

    Advanced Member

  • Administrators
  • 30,995 posts
  • LocationSydney, Australia.

Posted 12 November 2012 - 05:25 AM

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

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com