|
It seems I must host a bunch of files on a secure socket server, instead of the current "plain http" server. Can anyone provide me with a rule of thumb how that change will impact the performance in accessing those files?
Any ballpark figures by how much the preformance will drop?
Also, will browsers like IE and Mozilla still locally cache data coming from a secure socket server?
TIA
Bernd
|
|
|
|
|
ummmm the encrypting / decrypting takes a significant time slice if u have heavy loads running over ssl
ballpark figures? maybe 40% worse performance?
"traffic lights are for people who can't make their own decisions" biz stuff about me
|
|
|
|
|
From a browser I can goto the root folder of my personal web pages and can see a directory listing of the files and directories. How can I stop visitors from seeing the same and instead see a Index.htm, i.e. by default a certain html file is returned to their browser?
Andy
|
|
|
|
|
If you have full control over the server, you can go into IIS, right-click the site, select Properties.
Then in the Documents tab, there is a list of files that the server will search for before showing a directory listing (assuming the "Enable Default Document" check box is set).
You can also stop directory browsing here under the Home Directory tab, just uncheck the box marked "Directory Browsing".
If your site is hosted then you need to talk to the hosting company.
Paul
Pleasently caving in, I come undone - Queens of the Stone Age, No One Knows
|
|
|
|
|
try using a .htaccess file I think the syntax is
Options +Indexes
Alternatively justs use the index file name as specified by your hosting company, probably index.htm or index.html, if you are hosting a a UNI* server the name is case sensitive.
|
|
|
|
|
I'm trying to call a C++ app that I wrote from my website via javascript but am having a lot of problems. Being new to the whole web development world, I'm unsure as to how to actually do this and make it work. What I'm trying to do is retrieve information entered in a form on a page. I want to save the information but don't have a database set up to save it to and I don't want it to open up a mail window where the user has to send the data. I want to collect it transparently to the user. I'm wrote a simple C++ app that writes the data to a file, but can't get it to work from the javascript. Can someone tell me how to do that or, even better, a better way to get the information in my hands without the user having to do anything other than enter their information in the form and click submit?
|
|
|
|
|
Sure, using CDO if you are in Windows environment, or sendmail if you are in Unix. Both should be done in server-side script, just collect all input and send to you by e-mail.
As an alternative way you can just store all input in files (again using a server-side script)
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Yeah, that's what I'm trying to do. I wrote a basic C++ app to write the information I want to a file on the server. I'm trying to call that executable from the client-side javascript on the HTML page. I'm apparently doing something wrong because it throws an error talking about unexpected end of script headers or something like that. I've changed the app to be nothing more than just a main function that doesn't do anything. I still can't get it to work. I must be calling it wrong from the javascript or something.
here's the code:
var commandLine;
commandLine = "param1=" + name + '&' + "param2=" + school + '&' + "param3=" + email + '&' + "param4=" + city + '&' + "param5=" + state + '&' + "param6=" + "Y"
window.document.location = "http://www.agdsoftware.com/cgi-bin/EvaluationCgi.exe?" + commandLine;
Any thoughts?
|
|
|
|
|
Your executable is ISAPI Extention/Filter, right?
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
No, it's just an executable. I don't know if this is the proper way to do this as I've never done any web development. I thought I could write an app and call it from the webpage to have it run on the server, take the information I send it, and create a file with that information in it. Can I not do that?
|
|
|
|
|
Nope, if you want to use C++/VBA application, you should write either ISAPI dll or COM object. This is for Windows environment. I dunno about Linux/Unix hosts, but I'm sure Win32 Executable won't work there
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Philip Patrick wrote:
Nope, if you want to use C++/VBA application, you should write either ISAPI dll or COM object. This is for Windows environment.
Is that true? I've never tried to do anything like that, but what about things like this:
http://www.cat23.com/cgi-bin/webnews.exe[^]
I know for a fact that's a Win 2000 Server, is this not simply running an executable?
Paul
Pleasently caving in, I come undone - Queens of the Stone Age, No One Knows
|
|
|
|
|
It is a CGI application. IIS (Windows) supports it too. Sorry can't tell you much about it, you should search for explaintation on Linux/Unix sites, CGI references, etc.
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Your CGI application should write a valid response to standard output (cout in C++) or the server will give an error message. The minimum working output would be a Content-type: header and a blank line.
|
|
|
|
|
Yeah, can't figure out how can I use it if I want so-called "non-greedy" expression, but with scripting version 5.0.
See in version 5.5 you have a special qualifier "?" that gives you what you want, but version 5.0 (Win2k) doesn't have it. In my example I need to strip all ASP code from text, making "<%[\s\S]*%> " of course won't work if I have multiple occurances of ASP script in the page, I tried "<%[^(%>)]*%> " as well, but it takes parenthesses "()" as a characters...
What can I use? Anyone can help?
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
|
I know, well, I have XP, so got the right version, but the problem that Hosting Provider doesn't have it That's why I'm looking for an alternative way
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Please excuse my ignorance but I have had no dealings with programming on the Net. I want to create my own web site using the space provided to me by my ISP. Can someone please let me know whether it is possible to run ASP or script on web pages setup in my own web space, as said provided by my ISP?
Andy
|
|
|
|
|
I think you should ask your provider if he gives you ability to use ASP on the site.
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
You could create a small text file, upload it to your "web space" and try to access it from a web browser. This should be a quick way to figure out if ASP is supported.
Here's a quick example:
1. Create a text file on your desktop and name it test.txt (ensure that you have "Hide Extenions For Known File Types" unchecked in the Folder Options : View Tab ... this way you can easily rename the file name to a .asp later)
2. In the file enter the following:
<%
Response.Write("ASP is supported!")
%>
3. Save the file. Then rename it to "test.asp" (do this however is simplest for you. A quick an simple way is to select the object on your desktop and press F2, then delete the "txt" and enter "asp" ... then press "Enter")
4. Copy this file to your web space (via FTP or whatever resource they give you)
5. Open a web browser and navigate to the newly uploaded file (this could be anything but should be in the form of http://myISP.com/mywebsite/test.asp)
6. If you only see the text:
ASP is supported!
Then it appears that ASP is supported and you can use this technology on your website. However, if you see everything that you entered into the file ... things like the "<%" and the "Response.Write" then your script did not run and ASP is not currently supported.
Hope this helps!
Wally Atkins
|
|
|
|
|
My boss asked me to do some research on converting a web site so it is available on mobile devices. The site is all static html pages that link back and forth to each other. I read up on some WML tutorials in w3schools and the language seems easy enough. There were lots of articles on using the Mobile Internet Toolkit from Microsoft. We are a Microsoft shop. The only problem is we are not a .Net shop and Mobile Internet Toolkit is for .Net.
Any suggestion on how to start this converion without going to .Net and Mobile Internet Toolkit?
|
|
|
|
|
HTML --> WML is a very bad thought.
You should have an ASP (PHP, Perl,...) page that produces HTML when you are targeting a desktop PC, and WML for mobiles.
|
|
|
|
|
http://www.ltpb.8m.com/tutorial/WAP.html[^]
Its also posted on CP but I can't think of the URL off the top of my head.
-Steven
CP Addict
By reading this message you are held fully responsible for any of the mispelln's or grammer, issues, found on, codeproject.com.
For those who were wondering, actual (Linux) Penguins were harmed in creating this message.
|
|
|
|
|
I have a basic calendar scheduling system on our intranet site. It allows users to add items to an access database showing if they are sick, on vacation, etc.
As it stands now anyone can edit/delete any events.
How do I make it so that the events can only be edited/deleted by the original author or the administrator?
Ideally I would like users to automatically logon through windows ntlm auth. and have them be able to edit their events without being bothered for a login/password.
We are on a w2k network / and use access as the DB for now.
Thanks for any help,
Mike
|
|
|
|
|
Within IIS - open the properties of your application and go to the directory security tab. Click the "Edit..." button for Anonymous Access and Authentication Control. Ensure that only Integrated Windows Authentication is checked.
This authenticates the users coming to this site using the users NT Logon.
In an ASP page try the following:
Response.Write Request.ServerVariables("LOGON_USER")
This gets you the domain\username of whoever accessed the page. This way you can strip out only the username (or keep the whole thing) to store in the DB along with the event.
No second logon ... no sweat.
|
|
|
|