?
Solved

Easy Q for any one who knows ISAPI

Posted on 2004-04-12
5
Medium Priority
?
239 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 80 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

Technology Partners: 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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