PHP and COM

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • paulroskilly@hotmail.com

    PHP and COM

    Hi,

    Im having problems getting my PHP to work with COM on a win2003 server,
    ive got the same code running on a winxp box with no problems.

    $excel = new COM("excel.appl ication") or die("Unable to instanciate
    excel");

    Excel is installed, if i try and run this line then i get the message :

    'Failed to create COM object `excel.applicat ion': Access is denied

    Tried various other COM objects like word but get the same message so
    its not unique to excel.

    I dont know why access is denied or what i can do to solve it. COM is
    enabled in the php.ini page,


    Thanks for any help.

    Paul

  • Jerry Stuckle

    #2
    Re: PHP and COM

    paulroskilly@ho tmail.com wrote:
    Hi,
    >
    Im having problems getting my PHP to work with COM on a win2003 server,
    ive got the same code running on a winxp box with no problems.
    >
    $excel = new COM("excel.appl ication") or die("Unable to instanciate
    excel");
    >
    Excel is installed, if i try and run this line then i get the message :
    >
    'Failed to create COM object `excel.applicat ion': Access is denied
    >
    Tried various other COM objects like word but get the same message so
    its not unique to excel.
    >
    I dont know why access is denied or what i can do to solve it. COM is
    enabled in the php.ini page,
    >
    >
    Thanks for any help.
    >
    Paul
    >
    It looks like the web server user doesn't have permissions to create the
    COM object. You might want to check one of the Windows admin newsgroups
    to see exactly what permissions you need to set.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    Working...