I have a php file that I use to do some calculations and print out a variable. I have a script that works great in php, but i want to provide this service to alot of people and not everyone uses PHP.
Development environment: Windows 2003 Server running IIS6 and the same server running as a domain controller, DNS and DHCP servers.
Production environment: Windows 2000 Server SP4 running IIS5 and not used to provide domain control or name services.
The two environments are on different networks with no trust relationship between them. In both environments the web server is set up to disallow anonymous access and to use integrated Windows authentication. The application is vanilla ASP (i.e. not .NET) VBScript.
In the development environment, the following code runs flawlessly no matter whether "myUNCPath" points to a share on the web server or a share on another server in the same domain.
Set objFilesys = Server.CreateObject("Scripting.FileSystemObject") If Not objFileSys.FolderExists(myUNCPath) Then Set objFolder = objFileSys.CreateFolder(myUNCPath) End If
However, in the production environment it falls over with a permission denied error when "myUNCPath" is on another server and further testing shows that the FolderExists method is returning false even when "myUNCPath" exists. The network share is configured to give full control to the Everyone group.
I've found http://support.microsoft.com/kb/207671 which although referring to IIS4 suggests that the issue could be the authentication method (I'm assuming that integrated Windows authentication is close enough to NT Challenge/Response and so might generate a token that cannot access network resources). I'm not sure of this is the problem because if it were then the code shouldn't work in my development environment.
Any ideas on what's going wrong and how to access the network resources in the production environemt?
Using IIS I want to embed a TIFF file in my web/intranet page that is stored in a folder that is not accessible to everyone. The files are strictly private in nature and only the requested TIFF file may be shown. They are in a folder that is used by another application and it can’t be moved. Code:
how can i access XLS file instead of using a database? I have a single XLS file with several sheets-which in this case represent tables. How can access them, create recordset, display them etc.
I'm trying to write a script that will put files uploaded through a page on a remote server via FTP. I've tried the code on this page:
http://benmeg.com/code/asp/ftp.asp.html
but I get a permission denied error when trying to execute ftp.exe. Does anyone know how I can fix this, or recommend another way of getting the files onto the other server? The production servers are running Windows 2003.
We have an ASP application which links to various word and excel documents stored in a folder called attachments. The documents are extermely confidential in nature and we would like restrict the access to them through the application only. How can we prevent users from guessing the name of the document and reach it.
I have a virtual directory which I can access as Directory Browing has been enabled. Now if in Internet Explorer I open any Static content like HTMLs/SWF's they work fine. But when I try to open an ASP page it gives me a 404 'File not Found' Error. ASPX pages work fine though they are in a different sub folder.
I have checked the security settings and they are not hidden. Any ideas?
I write search files webpage.when users enter part or all of a file name and asp page send back a list of only the files(that user can click to open files) whose names contain the text they entered.I want to save data about accessing files such as file name ,accessed date of fileto my database(Microsoft Access).I don't know how to write a adding code to do this. Code:
I have a website that we display images we have saved into a SQL Server 2000 database as binary BLOB. This is on a Windows 2003 Server. Just recently (a week ago) this website began to save the images it is displaying on the website as ASP pages in the Temporary Internet Files > IE.Content > Folder.
We have other websites where we use the exact same code and these do not save files on the server when they are displayed.
Here is the code to display the image: Set rs = objConn.Execute( SQL ) Response.ContentType = "application/octet-stream" Response.BinaryWrite rs("Product_Image")
SQL is the SQL String to get the image from database
When I add this code:
Response.ContentType = "image/jpeg"
The images still display on the website, but now are saved in the Temporary Internet Files folder as JPG's.
Is it possible to open an FTP connection in ASP? I would like to download a file (short one), and display the contents on the page. Previously I used PHP and it was quite simple there, but I didn't find any information on this for ASP. Any suggestions?
how do i access the next record in a database using a next button in a form. Assuming that i have accessed the first record and displayed on a page, now a 'next' button should be able to retrieve the next record in the db.
if it was possible using asp to access a textbox value from the parent page in a popup page.The popup page is asp therefore the statement which tries to access the value from the parent page must be asp code (so no javascript functions can be used to access it).
I have tried several attempts at gaining the value such as:
i m writing some ASP to access a SQL database and it doesn't seem to be connecting right, i was wondering if someone could see if I have gone wrong anywhere in the connection code below and explain what i put in the DSN?
Dim VARIABLE Dim CN Dim RecordSet Set CN=Server.CreateObject("ADODB.Connection") CN.Open "Provider=SQLOLEDB; DSN=whats this?; uid=; password=; Initial Catalog=Table" Set RecordSet = CN.Execute("SELECT * FROM Table where something ='"&VARIABLE&"'") %> <%Connection.Close %>
I'm trying to get remote ip address and local ip address of the user (i.e. machine name) but i couldnt find out it. however i can see the public remote ip address.here is the little code that i have written..
<% For Each Item in Request.ServerVariables %> <tr> <td><%= Item %></td> <td><%=Request.ServerVariables(Item)%></td> </tr> <% Next %>
If I have the line adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("produkten.mdb") to access an Access Database local to the site, is it possible to have something like adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=http://www.somesite.com/somedb.mdb" To allow the site to connect to a db on another site/server which also belong to me?
I use the RemoteScripting with the rsproxy.class within my asp pages. I don't have problems except, when the Java console is not active in IE. Is there a way to detect from asp, if the java console is active or not ?
or, how to do remote scripting without the rsproxy ?
i have just completed the charity web site www.leahpattison.org (please give your support) and i have the news system that they can update hosted on shared hosting on a sub domain of one of our core domains leah.neue.co.uk on the main sites home page i have a scrolling news ticker in an iframe that calls a page from the 'news server' and whenever you click on a news item it pushes you onto the news server to deliver the pagesonly it keepstiming out. anyone have any suggestions? the host say 'because we host many asp sites we have a lot of traffic hitting msaccess databases, some of which do not properly close their connections' basically tough luck. is there any way i can make this site more efficient and make the news system work?
I work with dreamweaver 8. I use the tools provided within dw to create my asp features etc. I downloaded a news script to save time since its a very low budget site, but I need to customise how its displayed.
The news script connects using a Server.MapPath connection. I would like to be able to work locally using a dsn. dsn=nwnews; but I would like to be able to change that connection to work on the remote server for testing etc.
I have a Web application that uses Remote Scripting to provide dynamic data to a web page.I am testing the application in Internet Explorer 6 SP1 running on Windows XP Professional. When I use the Microsoft JVM,the application works without any problems.However, as a result of future withdrawal of support of the Microsoft JVM as a result of the settlement with Sun, I need to ensure that the application works okay with the Sun Java plug-in for Internet Explorer. This component is no longer available,and clicking on the OK button only reiterates this message. When I click on the Cancel button instead, the Remote Scripting functionality fails to work.Is it possible for Remote Scripting to be configured to work with an alternative JVM, such as the Sun Java Plug-In, or is it entirely dependent on the Microsoft version?
IM trying to put up a small database in my website and having my visitors to search it. A record of this database will have four fields: The first one will hold a number, the second one a Street name, the third a City, and the fourth a picture. The database will be searched either by the number or by the city.
We're wanting to upload files and save them to a different server on the network (Windows 2000) from the web server. The upload works fine but we cannot copy files, using the File System Object, to this other server folder.
what is required in terms of mapping and registering the folder so that the web server can link to it?
I just want to delete a file in a server by FSO. My code is:
Set objFSOD = Server.CreateObject("Scripting.FileSystemObject") objFSOD.DeleteFile Server.MapPath(".") + "Greetings" + sFileName1, True Set objFSOD = Nothing
When I check the code locally, everything is fine. I have two remote servers. When I check the code in each servers, one is fine and other is thrown a error. But the error msg is in Korean language while I'm not korean, that is why I can't read the error msg. What would be the error msg about? The sFileName1 was always correct every time I checked.
Currently we have a site that allows users to listen to mp3 files. It is creating bandwidth issues. So we want to move the mp3 files to an ISP that caps bandwidth usage. Ours is currently burstable.
Now I am able to do the following:
Set fs = CreateObject("Scripting.FileSystemObject") If fs.fileExists(music_file) Then 'show music file Else 'do not show a link for file End If set fs = nothing
Is it possible to do the same thing, but on a remote server?
I have a access database on my server which my users can download it from my website. I have update.asp file which will update the database on the client. So say if there are 2 users each will download a copy of the database on to their machines.
When they run the update.asp file, the information will go to their respectively database(the one's on their machine). The architecture of the DB's remains the same but each client will have his only data. Is this possible? IF yes then, why do I get this error...
Microsoft JET Database Engineerror '80004005'Could not find file C:Test.mdb.
At our company we daily need to access data from a website and use this data on other reports which we run daily...
step 1: we go the wesite step 2: we authorize ourselves by providing username and login step3: after successful login..the webpage provides us with links step 4: we select one the links and then this lists the links to the documents (PDF and EXCEL) formats from where we get the data...
Now... is there a way to write a ASP script...to connect to the website, provide user details and access the desired link and then the desired document. And then we need to parse this document for the desired data.is it better to access the data from the PDF or from the EXCEL
I know that when I send a request for an ASP script to the server, IIS gets the script, interprets the ASP and then basically spews out a load of HTML to my browser (over simplified I know). Hence the reason why when I look at the source code in IE all I see is HTML and no ASP.My question is this: Is it possible to get this source code as a string somehow to then further manipulate with ASP in a second page? Surely there must be a way?
As luck would have it I've landed a client whose site relies on ASP and what I can only assume is an MS Access database. ASP is definitely not the language of my choice but I'm stuck with having to learn the basics for what I'm required to do. Basically the database is located in the folder /fpdb/ and is called vsproducts.mdb. It was actually installed by the off-the-shelf shopping cart/catalogue script that is being used by the site's owner. I need to be able to access and display on a page some data found in this database. Is this easy? I have next to no knowledge of ASP so please keep things as simple as possible
Is it possible to access the relationship information from an ASP program? I'd like to be able to traverse the relationship tree of a .mdb file on my server from ASP/javascript code.