Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- COM Object syntax differs per server
December 12, 2005, 10:04 am
rate this thread
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.
On one server = $graph->Depth = 50;
On another sever = $graph->Depth(0) = 50;
Please help guys this is driving me nuts!
Re: COM Object syntax differs per server
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
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...