Re: Server side script problem (General questions)
Hi thanks, that was quick!
to reproduce the problem is simple. If you have php installed, use the sample for php in the vb samples directory and change the content of hello.php or add a new php file with a script error.
Option Explicit
Dim WithEvents Http1 As wodWebServerCom
Private Sub Form_Load()
Set Http1 = New wodWebServerCom
'On Error Resume Next
Http1.Port = 881
Http1.Start
Http1.DocumentRoot = App.Path
If Err Then
MsgBox There was an error: & Err.Description, vbOKOnly, Error
End If
'ShellExecute vbNull, open , http://localhost:881/phpinfo.php , , , 0
End Sub
Private Sub Http1_CGIStart(ByVal User As WODWEBSERVERCOMLib.IWebUser, ByVal FullPath As String, ByVal Environment As WODWEBSERVERCOMLib.IWebHeaders)
Environment.Add REDIRECT_STATUS , 200
Debug.Print Environment.ToString
End Sub
Private Sub Http1_RequestDone(ByVal User As WODWEBSERVERCOMLib.IWebUser)
User.Response.CGIExecute D:phpphp.exe & User.Request.PageName
User.Response.StatusCode = 200
End Sub
et voila !
Thanks
Jose
Complete thread:
- Server side script problem - Jose, 2004-09-08, 20:01
- Re: Server side script problem - wodSupport, 2004-09-08, 20:04
- Re: Server side script problem - Jose, 2004-09-08, 20:46
- Re: Server side script problem - wodSupport, 2004-09-08, 21:56
- Re: Server side script problem - Jose, 2004-09-09, 10:42
- Re: Server side script problem - perezjos, 2004-09-10, 15:24
- Re: Server side script problem - wodSupport, 2004-09-10, 20:56
- Re: Server side script problem - wodSupport, 2004-09-11, 00:28
- Re: Server side script problem - Jose, 2004-09-13, 02:22
- Re: Server side script problem - wodSupport, 2004-09-13, 05:07
- Re: Server side script problem - Jose, 2004-09-13, 02:22
- Re: Server side script problem - wodSupport, 2004-09-11, 00:28
- Re: Server side script problem - wodSupport, 2004-09-10, 20:56
- Re: Server side script problem - perezjos, 2004-09-10, 15:24
- Re: Server side script problem - Jose, 2004-09-09, 10:42
- Re: Server side script problem - wodSupport, 2004-09-08, 21:56
- Re: Server side script problem - Jose, 2004-09-08, 20:46
- Re: Server side script problem - wodSupport, 2004-09-08, 20:04