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
Basic Question about Threading and PHP...
I have a page that I am working on and it is taking several hours to process. The basics of what th
How to ask a regex question?
Hi, I thought I'd share some of my insight after seeing too many bad questions that either get ignor
Database 'Validation'
Hi everyone,
I'm trying to validate the password entered by the user with the password in the dat
Clean URLs
Hi I was wandering if anyone has ever implemented URLs on their PHP run website using URLS like wiki
Beginner question regarding Array's
Hi everyone, the page im working on has an array of variable at the top...
Code: $define_li
Calander Basic Spript help
hi, just starting out with PHP and have the following script:
<?php
//This gets t
Probably a simple error...
I'm getting the error -- Parse error: syntax error, unexpected '{' in /home/content/c/s/t/csteffen24
duplicate record notification
In my database, after insertion of records, I want to know if the record inserted is duplicate or no
Having Problem with Date
l have a submit buttom where user have the possibility to add a date to specify when his message s
Unable to customise toolbar in FCK