ID:272671
 
Is it possible?

I have already worked a ton with HTML and PHP with BYOND, and discovered that I can access SQL databases and such with PHP. However, I noticed that BYOND seems to have trouble with ASP pages...

I'm wondering if there is a way to use ASP in BYOND code. For example:


I already have working code that obtains content from an HTML page (Or PHP, if I change the url) such as the following:
proc
LoadWeb(var/t_url)
WorldWeb.Cut() //clear old List. We dont want any old values or duplicates
var/list/L = new()
var/http[] = world.Export(t_url)
var/list/K = new/list()
if(!http)
world.log << "Error: Unable to find page [t_url]"
return
var/F = http["CONTENT"]
if(F)
var/Y = file2text(F)
//Code for processing the text on the web page...


That above code works perfectly fine, and does what I need it to. The problem is, however, that some of my websites that I have for BYOND games either do not support PHP, or have it limited on functionality. Thus, I am rather forced to make them in ASP (since it is one of my best web-development languages in my arsenal). I have tried several different approaches to try and grab the text (which is produced through the page's functions with the SQL database) from the ASP page, but no matter what I try, it doesn't work.

If anyone has any ideas, please let me know...
I'm stumped, AJAX notwithstanding, the process should be the same.