ID:               33596
 User updated by:  marko dot sirovnik at korona dot si
 Reported By:      marko dot sirovnik at korona dot si
-Status:           No Feedback
+Status:           Closed
 Bug Type:         COM related
 Operating System: Windows 2003 Server
 PHP Version:      5.0.4
 Assigned To:      wez
 New Comment:

Hi!

During some experimentation I found out that there was security problem
in IIS. Sorry Wez to bother you all this time. You were right already at
the beginning. Details with solution for my problem are presented here:
http://dbforums.com/t527031.html

Thanks for the answers and effort.

Regards, Marko.


Previous Comments:
------------------------------------------------------------------------

[2005-08-27 01:00:04] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2005-08-19 13:59:58] [EMAIL PROTECTED]

You're supposed to have the vbs echo something to indicate if it worked
or not.

------------------------------------------------------------------------

[2005-08-19 11:47:56] [EMAIL PROTECTED]

Wezzie? :)


------------------------------------------------------------------------

[2005-08-19 11:10:26] marko dot sirovnik at korona dot si

1. I put Read & Execute permissions on "cmd.exe" and "cscript.exe".

2. OLAP.VBS
----------------
  Dim cat 
  Set cat = CreateObject("ADOMD.Catalog")
  cat.ActiveConnection = "DATA SOURCE=blackbox;UID=sa;Initial
Catalog=FoodMart
2000;Provider=MSOLAP;Encoding=windows-1250;Roles=skrbnik;"

3. COM_VBS.php
-------------------
<?php
 $r = system('cscript.exe c:\OLAP.vbs', $a);
 echo "Result = " . $a;
?> 

4.Result in Browser
---------------------
Result = 1

No idea, does it work or does it not.

There is no difference in result in Browser concerning of changes the
DATA SOURCE parameter in Connection string. Either Local or Remote OLAP
server, the result is the same. 

Did I miss something?

------------------------------------------------------------------------

[2005-08-17 16:53:30] [EMAIL PROTECTED]

PHP doesn't touch the content of your strings (except to convert to
UTF-16); it passes them on to the COM server, and its the COM server
that's reporting an error.

It seems unlikely that PHP is the cause.

Can you try running your .vbs file from the same environment as PHP?

eg:  Create a PHP page that calls system("cscript.exe test.vbs") and
then request that PHP page from your browser.

(you will probably need to replace the MsgBox line with Echo)



------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/33596

-- 
Edit this bug report at http://bugs.php.net/?id=33596&edit=1

Reply via email to