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.
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
Is there a more efficient way to code this than what I have?
I have three associative arrays.
$combinedSettings
$userSettings
$defaultSettings
does anyone know a php script to send mail using gmails/googles free smtp server
cause i heard u can do that but i dont know how
Transport data between itab and textfield on ALV event
Hallo,
I have a ALV Grid ( cl_gui_alv_grid ) and I also have hotspot click event with a h
How to replace search button with link?
hi to everbody.
i have a search submit form and button like this :
<form id="f
Using insert variable
need a way to inert variable data to mysql database
$acc = "212121212";
$nok =
Update Database
Hi All,
I have a problem with this:
Code: [Select]<?php
session_start();
Beginners syntax and loop questions - help please!
Hi everyone,
I have some problems with php code. I'm currently in the middle of learning php,
simple php table loop
Hi all,
I've the following code
<?php // Create category options
a dificult string search
Hi I don't know a way around this. I want the user to input a password, but to make it a bit complca
Shuffle Array
Hi,
I am writing a script for a game that needs players to randomly be assigned a target (ano