com problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

com problem

Post 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");
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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";
}
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post 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
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Congratulations, you have just hit dependency hell.

You'll need to find each of the software cited below and install it.
User avatar
stereofrog
Forum Contributor
Posts: 386
Joined: Mon Dec 04, 2006 6:10 am

Post by stereofrog »

itsmani1

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

see http://wvware.sourceforge.net
Post Reply