Solved

Easy Q for any one who knows ISAPI

Posted on 2004-04-12
5
238 Views
Last Modified: 2011-10-03
0
Comment
Question by:DavidBirch2dotCom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
tanghz earned 20 total points
ID: 10806350
Hi, MAX_PATH is in the Windows's unit. You need
Uses Windows
it should be fine , then.

As to your original question, you certainly can access any file within the directory where you put your CGI program. If you are allowed to put CGI program there, I can not see why you can not put other files there?
If you want to access other files out of there, it seems a hacker's function. I believe that shared or public server is not allowed unless you have the rights of Admin.
0
 
LVL 7

Author Comment

by:DavidBirch2dotCom
ID: 10807042
Thanks :) that’s fixed it

I’m not trying to access anything outside of the CGI bin, however I just didn’t know how to access the stuff in the CGI bin - now I do :)

However I am still trying to figure out how I could cope with multiple simultaneous requests for the same file.... any ideas?

Thanks

David
0
 
LVL 7

Author Comment

by:DavidBirch2dotCom
ID: 10807047
post on the old Q for the points
0
 
LVL 1

Expert Comment

by:tanghz
ID: 10807159
Normally, different requests should reside in different threads.
You just need to
1. var CS: TRTLCriticalSection;
   and
InitializeCriticalSection(CS) in the OnFormcreate event,

2. put the read file code between the
  EnterCriticalSection

and

 leaveCriticalSection;

This should work.

The code between this clock can only be processed for one thread within one Process (or application).
More details can be obtained from help

Good luck.
0
 
LVL 7

Author Comment

by:DavidBirch2dotCom
ID: 10807307
thanks tanghz :) IT WORKED :)

i assume I can use multiple TRTLCriticalSection's? just by using other varibles ?

u get the points, post somthing in this question to get the points

http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20946761.html

David
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question