Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FoxISAPI.dll does not delete \script\fox????.ini files
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00225261
Message ID:
00229274
Views:
17
>I've been able in the Echo method (described below) to open the .ini file with fopen(), no errors. But the length of the file was zero. Then i used a heavy ordinance:
>
>run del fox1234.ini && it worked
>
>The result is reached like the right ear is reached by the left foot.
>The best approach that i was able to come up with is to use Timer to delete all accumulated fox????.ini files every 5 min. Delete file VFP command works in the timer.
>


The problem are file permissions I think. FoxISAPI.DLL runs under IUSR_ account
and that account needs rights to delete the file in that directory. For kicks
set the permissions to allow IUSR_ full access and I think you'll see that
the INI files disappear on their own.

Bad design in FoxISAPI, since you can't tell the tool where to send the files.

+++ Rick ---

>Thanks for advise
>Kamil.
>
>>If this were NT I'd tell you it's a permission problem. The anonymous Web
>>user needs to have rights to read and write in the directory that FoxISAPI
>>lives. By default this path only has Execute rights.
>>
>>Under NT, you can fix this with running DCOMCNFG and configuring your server
>>to impersonate a specific user account, but only if you use EXE servers.
>>
>>None of this should matter under Win98 though, although if you use
>>Web security it may apply...
>>
>>You might want to try to open the INI file with FOPEN() and check the
>>FERROR() to see what the error code is...
>>
>>+++ Rick ---
>>
>>>Win98, VFP6.0.
>>>I try to develope a test internet OLE server. The problem i have is that after testing the web page i see a bunch of FOX????.ini files created by FoxISAPI.dll in the scripts folder. They say that FoxISAPI.dll deletes the temporary .ini files after calling OLE server method. Apperantly it does not. What's more frustrating i can not delete the file from my method.
>>>
>>>Procedure Echo
>>>lparameters p1, p2, pDisp
>>>pDisp=0
>>>cResult='echo'
>>>delete file (p2)
>>>* p2 contains the full path eg 'C:\website\scripts\fox1234.ini'
>>>return cResult
>>>
>>>delete file (p2) does not delete.
>>>
>>>TIA.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform