Jump to content


Photo

execute a VB script in PHP


  • Please log in to reply
2 replies to this topic

#1 kochv

kochv
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 06 April 2006 - 08:49 AM

Hello

At first excuse me if my english isn't correct because i'm from switzerland ;)

now my problem:

i have an web application where you can control all Services(WMI) from different servers.
now i have a VB-Script which gets Server names from a database and check all Services from the Servers in the DB.
this works all fine but if i want to execute this .vbs-file in the PHP site it doesn't work.
I tried with the command "exec ('blabla.vbs');"
if i execute a .cmd file it works fine but if it's a .vbs-file it doesn't work...

i have set the Apache properties locally to 'allow this server to interact with desktop' but nothing has changed...

i have an apache server(newest xampp version) and all my files are LOCAL in the htdocs.
can someone help my?

greets
Dark age of Camelot Freak!
[!--coloro:#33CC00--][span style="color:#33CC00"][!--/coloro--]Dartmoor: FP|Berendor, FP|Grarek[!--colorc--][/span][!--/colorc--]
[!--coloro:#3333FF--][span style="color:#3333FF"][!--/coloro--]Salisbury: KF|Volta[!--colorc--][/span][!--/colorc--]

#2 shortj75

shortj75
  • Members
  • PipPipPip
  • Advanced Member
  • 118 posts
  • LocationPort Huron,mi

Posted 06 April 2006 - 05:45 PM

have you tried the include() function

<?
include("blabla.vbs");
?>

or you may have to echo your script


<?
echo "your vbscript here";
?>

The Short One

hopfully this helps if it doesn't sorry
i won't write the code for you!!! you don't learn that way

#3 kochv

kochv
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 10 April 2006 - 05:42 AM

hm i tried both but it doesn't work :(
if i would do it in asp i wouldn't have this problem, but i like php more and i can't ASP^^
Dark age of Camelot Freak!
[!--coloro:#33CC00--][span style="color:#33CC00"][!--/coloro--]Dartmoor: FP|Berendor, FP|Grarek[!--colorc--][/span][!--/colorc--]
[!--coloro:#3333FF--][span style="color:#3333FF"][!--/coloro--]Salisbury: KF|Volta[!--colorc--][/span][!--/colorc--]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users