ASP complete function reference on the web?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Puritan

Thread Starter
Joined
Feb 14, 2001
Messages
242
Is there a place where I can search a complete reference of all ASP functions? I'm trying to convert some ASP pages to PHP, but I don't know ASP very well, and there are calls ASP is making whose purpose and function is unknown to me. Unlike www.php.net, www.asp.net didn't seem to have a searchable list of functions, and I couldn't find one successfully on google either. Does anyone know where I can find a list? Is it on asp.net and I just missed it like an idiot? Or another good reference site? Thanks.
 

Puritan

Thread Starter
Joined
Feb 14, 2001
Messages
242
Plain jane ASP. I don't know even its most basic function calls, but I need to read it, not write it, so a searchable complete function index, as opposed to an ASP-for-beginners guide, is what I need...
 
Joined
Jul 29, 2001
Messages
21,334
Function calls are based on what function they are trying to add to their application. There is no set list of functions in ASP as it is just a scripting language not a full blown programming language. If you are looking for sytax or something like that you might be able to round that up that fairly easily. Is there an example of a function call you are attempting to convert?
 

Puritan

Thread Starter
Joined
Feb 14, 2001
Messages
242
Well (and this might be very basic ASP, please bear with me :eek:):

Code:
Set DBConn = Server.CreateObject("ADODB.Connection")
DBConn.Open Application("MS_ConnectionString")
This opens a connection to the database, but the example ASP I've seen has things like DBConn.Open("database", "login", "password", otherstuff). Application("MS_ConnectionString"), I presume, retrieves a string that specifies what database to open, but I can't find what the Application function does (or where they're getting this string either, but that's another story).

Later:

Code:
pageThis = trim(Request("pageThis"))
Again, the things I've seen imply that Request is a global object with public fields for things like post inputs and stuff, but I haven't seen it as a function (and it doesn't seem to be operating on the db so much as being an independent function)...

And then...

Code:
If Session("UID") = "" Then
	'expire now
	If intExpire = 0 Then
		Response.Redirect("/")
	'redirect to login page
	Else
		Response.Redirect("/member/LogIn.asp?strURL=" & strURL)
	End If
End If
I read there was no exact equivalent of "Session" in php... how would I translate this?

The pages I have to do would seem to be pretty basic (albeit poorly written) ASP, but as I have no knowledge of ASP at all and no info as to the actual underlying data structures (i.e. I have to reverse engineer how everything works from the ASP, I don't actually know how the databases and stuff work), it's annoying. I'm sure other mysteries besides these functions will pop up later, however, so requesting help on individual things will probably result in me posting all of the pages in their entirety :) which is why a complete index, where I can search for things like Application, Request, Session, and whatever else comes up, would be great. Anyway, any help is appreciated, thanks.
 
Joined
Jul 29, 2001
Messages
21,334
Those aren't function calls they are probably stored procedures on a SQL server. I am assuming that is what they are using for a back end. Session variables can be set in an include file and I bet that is where most of your application variables, etc are hiding from you. Look in a global.asa file or in any include files specified at the beginning of your pages, they usually load before any other code.
 

Puritan

Thread Starter
Joined
Feb 14, 2001
Messages
242
Ah, you're right, they are hiding from me in a global.asa file and seem to be string constants. Is global.asa something that's always just loaded by all asp pages in the same directory even without a specific include statement (the asp page I was editing never made mention of it amongst the files it was including, which is why I wasn't looking for it)? Okay, I'm going to go with that and try to convert that through to PHP... thanks. (Hopefully, I'll be able to do this without running into any more snags... :))
 
Joined
Jul 29, 2001
Messages
21,334
The global.asa is for setting all of the application variables and I believe it is used as kind of a session variable thing for the entire application. I personally never use it but I have one application in the office that does in a limited way.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top