PHP Script runs on CLI but not through web browser
Posted on
16th Feb 2014 07:03 pm by
admin
I am running into an issue that I just can't seem to find the answer to. I have a Windows Server 2008 box that is running Apache 2.2.14, PHP 5.2.11, and MySQL 5.1.39. My problem is I am trying to call a VBScript that interracts with a database on another machine but I can't seem to get it to actually run the script.
Watching Process Explorer I can clearly see that httpd.exe spawns php-cgi.exe which spawns wscript.exe so it appears that the actual call is working. However, after a few seconds the php-cgi.exe process closes and the wscript.exe process breaks out into its own process (no parent anymore) and never runs the code or closes. I actually have to end task for it to go away. When I run the script through PHP Command Line, it works perfectly as expected.
Did you know?Explore Trending and Topic pages for more stories like this.
This happens both with the vbscript being on the local machine, and on a UNC path of another machine. I stripped down the code to the most simple form I could, and even tried putting nothing more than a message dialog in the VBScript, and still I run into this error. Does anyone know why this might be happening? I don't see any errors in the logs, or through the browser when the page loads.
This exact same setup was working on a Windows 2000 Server machine so I'm not sure if this is something unique to 2008 or just a overlooked setting somewhere.
No comments posted yet
Your Answer:
Login to answer
132
52
Other forums
Date Format
Hi there,
I have a date format like this right now:
Sat, 17 Oct 2009 17:04:00
I ne
Using real time in php
I'm very average at PHP and im looking to introduce time to something on my site.
Its a sports si
GIS appliction help
I found some tutorials in the internet to develop a map application I don't want to use google maps
Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system
Say I go to h
I am stumped
OK. Here is what I am trying to do. I have the conditions set, and if the conditions are met, I want
Ariba 9r - SAP MM Integration
Hi experts,
The standard Ariba adapter for 9r creates a relationship between Cost Centers
Problem executing bash script using shell_exec
Hi there,
I created a bash script file using following code to convert doc documents to pdf using
Slashes
Have a small problem and I'm not able to understand why I'm getting the results I'm getting... and i
Passing vars to the DB
I have 3 small testing tables:
ID TYPE
1 pepperoni
2 C. bacon
3 taco
ID TY
send message to the java application
Oracle 10g with Windows platform.
I have a java application that periodically pings the d