For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > December 2005 > COM Object syntax differs per server









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author COM Object syntax differs per server
blue_nodule

2005-12-12, 8:02 am

I am working on a system that makes use of a COM object. On my system
at home it requires that I use the "( )" (round bracket) notation when
accessing array like properties in the object but when I run the code
on another server (after hours of debugging) it requires that I use the
"[ ]" (square bracket) syntax.

For instance

On one server = $graph->Depth[0] = 50;
On another sever = $graph->Depth(0) = 50;

Please help guys this is driving me nuts!

Michael Vilain

2005-12-13, 3:59 am

In article <1134381857.672143.165710@f14g2000cwb.googlegroups.com>,
"blue_nodule" <wernerv@gloviz.co.za> wrote:

> I am working on a system that makes use of a COM object. On my system
> at home it requires that I use the "( )" (round bracket) notation when
> accessing array like properties in the object but when I run the code
> on another server (after hours of debugging) it requires that I use the
> "[ ]" (square bracket) syntax.
>
> For instance
>
> On one server = $graph->Depth[0] = 50;
> On another sever = $graph->Depth(0) = 50;
>
> Please help guys this is driving me nuts!


Put conditional code in place that tests for the $_SERVER['SERVER_NAME']
and does the Right Thing(tm).

Or update your version of your OS and configuration to match the hosting
ISP.

Or find another hosting ISP that runs a version and configuration that
matches your system.

Or duplicate your system and co-locate it at the ISP's facility.

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com