Re: Server side script problem - WeOnlyDo Discussion board

Re: Server side script problem (General questions)

by Jose, Monday, September 13, 2004, 02:22 (7375 days ago) @ wodSupport

Hello
This has nothing to do with php.

in order to reproduce please follow the instructions:

1- Create a directory called test.
2- Create a file on that directory called testpage.htm
3- Cut and paste this content

<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN >
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>

<BODY>
<img src= /Idonotexist.jpg />
</BODY>
</HTML>

4- Open vb add a form and a reference to wodWebD.dll
5- Add the following code to the form

Option Explicit
Dim WithEvents Http1 As wodWebServerCom
Private Sub Form_Load()
Set Http1 = New wodWebServerCom
Set Http1 = New wodWebServerCom
Http1.Port = 89
Http1.DocumentRoot = C: est
On Error Resume Next
Http1.Start
End Sub

7- Start the program (F5)

6- Open Internet explorer and load the test page
http://localhost:89/testpage.htm

7- The browser should show the content of the page as you created it. No problem.
8- Press refresh a few times until you get the page

! Document not found.
The page you are trying to reach is currently unavailable.

9- At that stage your content has been modified with the error message if you are lucky!, otherwise the page testpage.htm has been deleted.

[:happy:] hoops !

Jose


Complete thread: