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
Fatal Error: Class 'com' Not Found In C:\program Files\
Started by adi2012, Nov 12 2012 02:31 AM
easyphp
2 replies to this topic
#1
Posted 12 November 2012 - 02:31 AM
#2
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
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.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











