Limit Access To Files
I want to have a simple login system on a website, where there is a private area, where only registered users can enter. I can do this, using a session. My problem is that I want to each user to have access to some files.
So user1 can access file1.zip (imagine) and user2 can access file2a.zip and file2b.zip. Of course, if they don't login, they can't download the file. If I just place the files on the server, with the url any person can download it. Of course there must be a way to do this.
View Replies
ADVERTISEMENT
Is there any limit to include files (<!--#include file="xyz.asp"-->).
I have developed an application where I am including different files on the
base of diffirent conditions and values and getting error at certain stage.
error is
Microsoft VBScript runtime (0x800A0006)
Overflow: '[number: 32768]'
Before I thought its due to some if or case statements and now I just
removed the line where I am including the file and its working.
I will be very thankfull if some one tell me if there is any limit of
include files so I will bring my code to parent files.
or is there anything else
View Replies
View Related
I got a access file with about. 90+ "posts" or what they are named. But my asp site only list the 50 last.. Any1 know why? Code:
View Replies
View Related
We're running Windows 2003 Enterprise Edn.with IIS 6.We'd like to limit the access to two of our ASP apps to those who are on the domain--without using the integrated domain authentication popup.
In other words,we don't want users on the domain to have to log in every time (or even once);those not on the domain would not see the site at all. Is this possible?How?
View Replies
View Related
Was asked to take a look at a script and to adjust the file uploading limit to more than 1MB. Currently, only files (.pdf) not more than 50kb can be uploaded to the database. Other than that, the script works fine.
View Replies
View Related
I want to limit user login by writing ASP program. In details, if a
user had logged in wrongly for more than three times, then the user
will not be abled to log in to the system anymore even thought he key
in correctly the username and password in the 4th time. That's means
he cant login forever until the administrator edit his status in the
database Can i refer to any ASP sample coding for this application?
View Replies
View Related
I am developing a voting system. How to preventing a user votes continuously? Maybe cookie is useful here, but I don't know how to use it. Could you give me a example?
View Replies
View Related
Was asked to take a look at a script and to adjust the file uploading limit to more than 1MB. Currently, only files (.pdf) not more than 50kb can be uploaded to the database. Other than that, the script works fine.
View Replies
View Related
I am doing a flash map with different categories-shops, services etc.
I want when people click on shops to view all the shops icons(buttons) in the map. They have to be pulled from a database using ASP. How do you save and pull swf files in Access database?
View Replies
View Related
I would like to restrict access to certain PDF files on my webserver. How can they be protected if they are in a "public" directory? For example, lets assume you have your html and asp pages for http://www.xyz.com saved on the server's hdd @ c:xyz.comhtdocs. If you place thefile.pdf in that directory, then all the "unauthorized" person would need to know is the pdf file url, i.e., http://www.xyz.com/thefile.pdf.
Assume I place the pdf file in the following directory on the server c:xyz.compdfs. Is there a way in ASP that I can allow certain visitors to view that file Remember, the asp file would be located on at c:xyz.comhtdocs.
View Replies
View Related
Does anybody know of any other(cheaper)ways to create a database that would b recognized by the MS Access ODBC driver?
I have a project that demands that I use an .mdb file, but all I need are a few simple tables. $500 is a little steep for a few Kb of data.
View Replies
View Related
I have just uploaded the files to a where they will reside and am now getting the following error
Error Type:
Microsoft JET Database Engine (0x80004005)
The Microsoft Jet database engine cannot open the file '
syd9004papc$InetpubwwwrootGMS_Statsgms_st ats.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
I have checked IIS on the server where this DB resides and have allowed as much rights as I can ... Has anyone seen this error before? I realise it must have something to do with security but I don't know if it's IIS or DB related?
View Replies
View Related
How easy is it to access the metadata from office files and PDF's? That is, Author, Title, Keywords, Comments etc...
I want to be able to scan a directory and provide links with descriptions (ie Comments field) for each file within. I can use automation to open and read the office files, but I imagine this would produce too big a load on the webserver. Is there a simple and slick way of doing this?
View Replies
View Related
I have a website.I want to give downloading files from my site to viewers. But I do not want to that viewers have direct access to my files. They must not access by address bar.
For Example,If a person type file name in address bar,this person can not access my file .he/she must login then I allow him/her to download my file . I want to this code with asp and script.
View Replies
View Related
I was trying to integrate a forum software to an existing site. The site is having a different database file already. What i want to do is, copy the forum tables from forum database file to the existing site database. How can I copy the tables from FileA to FileB using ASP?
View Replies
View Related
is there any way to protect files or a folder from unauthorised access, i.e.when a variable is false?
e.g.
when variable li = 1 then grant access to folder and files within
when variable li <> 1 then deny access
i have a folder with images and word documents i only want people with the variable set to 1 to be able to access them.is there a way?
View Replies
View Related
How can i limit the number of users on my .ASP page, i want only one user to
be using the page at a time,
The query i have on my page is big and takes a lot of my system resources.
View Replies
View Related
I have an HTML form with a textarea. When passing large
amount of data in the textarea, the Processing asp pages
catch an error message as follows:
Error Type:
(0x80020009)
Exception occurred.
The error is generated once the trim or length or replace
function is called on the field when long text is passed
in the textarea.
Is there a max limit on the string length that these
functions can process? What else can be done to done to fix this problem?
View Replies
View Related
I am trying to figure out how to create a
registration form that can limit that amount of people who are signing
up for an event.
The form has to take in consideration the number of
guests the attendee is bringing table seating location. How can
interact with the database in order to do this. I know how to create a
form and send that information to a database.
View Replies
View Related
Anyone used LIMIT in their queries before?? I've been reading up on it, but all of the examples I tried don't seem to work. Here is what I have:Code:
Set rs = CatalogCS2.Execute("SELECT * FROM products p " & _
" INNER JOIN applications a ON p.prodcode = a.prodcode " & _
" INNER JOIN inventory i ON p.prodcode = i.prodcode " & _
" WHERE DATEDIFF(d, a.app_launchdate, getdate()) <= '30' " & _
" ORDER BY a.app_launchdate DESC LIMIT 0,10 ")
Seems pretty straight forward, but I can't really find any good articles on it.
View Replies
View Related
I have a web application that query and insert record into a remote DB2 database. It has an ODBC setup pointing to a remote UNIX DB2 database server. The problem that I ran into today is that IIS created too many DB session which max out my limit at the DB2 side. I see a lot of "mtx.exe" when I check the db applications of the db server.
Even thought I close my db connection after each query, it seems to stay around and occupying a session on the DB server. So I ended up with a lot of people with failed insert or login because there are no more available session on the db server.
So my question is how can I set a limit on the DB connection? How can I make sure "mtx.exe" disappear after a query? What other option do I have?
View Replies
View Related
How would I limit the amount of Characters that show in the display:
<% =objRS("Title")%>
Like a Left Trim I only want 12 to 20 characters to show.
View Replies
View Related
I've made an ASP page that use a VB6 ActiveX EXE with a CreateObject.
Initially, this page work fine.
The object’s reference created with the CreateObject are saved on a session variable for reuse it on many page.
When many users call this page and many instance of the ActiveX EXE Object are created, the CreateObject command fails with a 429 error (ActiveX component can't create object).
The class (in ActiveX EXE) are MultiUse, then only a single EXE are running.
Terminating the EXE with Task Manager then the CreateObject will get to work again.
View Replies
View Related
I'm pulling product descriptions from the database and would like to limit the number of charcters that is displayed. Also, I'd like to add ... at the end.
Something like:
This long text is boring blah blah blah
would dispaly as:
This long text is bor
View Replies
View Related
I'm starting in asp and I'm trying to do a simple sql query to display a number of records on a page using the limit clause. I keep getting a syntax error in my from clause. Here's what I'm doing:Code:
rstProd.Source = "SELECT * from TBL_PRODUITS LIMIT 0,10"
I have no problem using this clause with PHP so I was wondering if there's some restrictions with it in ASP??
View Replies
View Related
I've got a small problem with my ODBC query that I'm unable to resolve by searching google. I need to limit my query so that it only returns a certain ammount of rows, for example 10.
I have tried the MySQL type query and that failed to work. Then I found an example on the internet in what looked like a weblog which said use "select top 10 * from tblname". Although this fails to work it does limit it when it feels like it. Often I'll get 11 or more results, but if I decrease the 10 to 4 for eample it still returns the same 11 or more rows.
View Replies
View Related
This code refreshes correctly:
<% Response.AddHeader "Refresh", "5;URL=page.asp" %>
This code does not refresh:
<% Response.AddHeader "Refresh", "1140;URL=page.asp" %>
Is there a limit on how many seconds I can use?
View Replies
View Related
I limit the quantity of characters in an input box. I need to limit the input to 10 for example.
View Replies
View Related
its there anyway via asp i can get around the 255 character limit for url strings.. its for use in a cms/eshot system. on a mailto: link i want to create a string of email address for the client and then send from there own inbox.
View Replies
View Related
I am having a problem uploading large files through ASP.We have several sites in IIS on 1 application pool.I was able to use MetaBase Explorer and increase the AspMaxRequestEntityAllowed value in /LM/W3SVC, and for at least 1 of our sites, it worked. Unfortunately, on our Intranet site, the error persist. Does anyone have any idea why? We do have ASP.Net installed on this server, but the error is explicitly ASP.
Searching for answers I found that another value, MaxRequestEntityAllowed, could also be responsible. Unfortunately, this value is not anywhere in our metabase.xml file, and I am hesitant to simply create it.
View Replies
View Related
I think an url variable could be limited, maybe someone know the maximum length I can use ? (I try to send an html code with the get method, maybe some symbols could not be accepted in url).Is this length limited for a variable or for the url string ?
View Replies
View Related
I have a Visual FoxPro table with Memos fields, and when i insert into the table a value that cames from a TEXTAREA field on a form, give me an error. Why? if the table field is MEMO?
View Replies
View Related
I want to limit a teaser-text to 100 letters and don't want to cut in the middle of a word. it should look like:
the quick brown fox jumps over the lazy....
and not:
the quick brown fox jumps over the la...
View Replies
View Related