Page 1 of 1

com problem

Posted: Thu Mar 15, 2007 12:49 pm
by itsmani1
I am running a script and getting this error:

'COM' not found


here is code:

Code: Select all

$comObject = new COM("Word.Application");

Posted: Thu Mar 15, 2007 1:17 pm
by volka
please post the output of

Code: Select all

<?php
echo 'sapi: ', php_sapi_name(), "<br />\n";
echo 'uname: ', php_uname('srm'), "<br />\n";
echo 'version: ', phpversion(), "<br />\n";
echo "extensions: <br />\n";
foreach(array_chunk(get_loaded_extensions(), 5) as $e) {
	echo join(', ', $e), "<br />\n";
}

Posted: Fri Mar 16, 2007 4:49 am
by itsmani1
response

Code: Select all

sapi: apache2handler
uname: Linux
version: 5.1.1
extensions:
libxml, xsl, xml, wddx, tokenizer
sysvshm, sysvsem, standard, SimpleXML, sockets
soap, SPL, shmop, session, posix
PDO, pdo_sqlite, pdo_pgsql, pdo_mysql, mysqli
mysql, mssql, ming, mime_magic, mhash
mcrypt, mbstring, ldap, imap, iconv
gettext, gd, ftp, filepro, exif
dom, dbase, dba, date, curl
ctype, calendar, bz2, bcmath, zlib
pcre, openssl, apache2handler, zip, SQLite
radius, pgsql, ionCube Loader

on 2nd installation

Code: Select all

sapi: cgi-fcgi
uname: Windows NT
version: 5.0.3
extensions:
bcmath, calendar, com_dotnet, ctype, ftp
iconv, odbc, pcre, session, SPL
SQLite, standard, tokenizer, zlib, libxml
dom, SimpleXML, wddx, xml, gd
mbstring, mysqli, mysql

Posted: Fri Mar 16, 2007 5:52 am
by volka
itsmani1 wrote:sapi: apache2handler
uname: Linux
version: 5.1.1
http://de2.php.net/com wrote:Requirements

COM functions are only available for the Windows version of PHP.

Posted: Sat Mar 24, 2007 7:17 am
by itsmani1
ok, i got "wv2-0.2.3" library which is written in perl I tried to install it but did not worked out, I find its rpm and when tried to install it and found this:

Code: Select all

warning: wv2-0.2.3-2.fc6.i386.rpm: V3 DSA signature: NOKEY, key ID 1ac70ce6
error: Failed dependencies:
        libc.so.6(GLIBC_2.4) is needed by wv2-0.2.3-2.fc6
        libgsf-1.so.114 is needed by wv2-0.2.3-2.fc6
        libstdc++.so.6 is needed by wv2-0.2.3-2.fc6
        libstdc++.so.6(CXXABI_1.3) is needed by wv2-0.2.3-2.fc6
        libstdc++.so.6(GLIBCXX_3.4) is needed by wv2-0.2.3-2.fc6
        rtld(GNU_HASH) is needed by wv2-0.2.3-2.fc6

any help?

thank you

Posted: Sat Mar 24, 2007 12:37 pm
by Ambush Commander
Congratulations, you have just hit dependency hell.

You'll need to find each of the software cited below and install it.

Posted: Sun Mar 25, 2007 5:15 am
by stereofrog
itsmani1

you're trying to install binary package, building from sources would be probably better.

see http://wvware.sourceforge.net