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 Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.