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.

132 Like 52 Dislike
Previous php-forum Next php-forum
Other php-forum

Reg Ex
Im trying to search for the string: srv_9 (Dead ???)

I thought to use preg_match, however I d

Problem with passing variables
I'm not really a php programmer so I'm really struggling with this issue.

I have a banner s

Why do I get this error
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/a5488351/public_html/b

serializing objects - loses methods - the point being?
Hi

I know that serializing an object will lose the methods. But whats the point in that? What

SWF image using php?
Hello once again.

My latest en devour requires me to produce an image of a static .swf that i

PHP Directory Listing Not working
Hey Guys,

I need help, I tried a ton of directory listing scripts and they all don't work. Al

Progress bar tracking file downloads
Hey guys, was wondering if there was a way to track how far a file has been downloaded. I know there

Email logic not working
I would like to send an email using the php email() function then if it does execute i.e sends i wou

How to generate a text file using php...?
Hi,
Can anyone give me code to generate a text file using php


Thanks in advance

Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages in

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash