adi2012 Posted November 12, 2012 Share Posted November 12, 2012 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 Link to comment https://forums.phpfreaks.com/topic/270584-fatal-error-class-com-not-found-in-cprogram-files/ Share on other sites More sharing options...
requinix Posted November 12, 2012 Share Posted November 12, 2012 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. Link to comment https://forums.phpfreaks.com/topic/270584-fatal-error-class-com-not-found-in-cprogram-files/#findComment-1391796 Share on other sites More sharing options...
trq Posted November 12, 2012 Share Posted November 12, 2012 There are better ways of accessing a files size without using COM as well. See file_size. Link to comment https://forums.phpfreaks.com/topic/270584-fatal-error-class-com-not-found-in-cprogram-files/#findComment-1391800 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.