I needed to run an output from a PHP file on my asp pages and used ("microsoft.xmlhttp")
This is quite a high traffic site, it did work, however my shared host suspended my account because of excessive temporary internet files (500 temp files created in a few minutes) these were being left on the server.
Someone has suggested the following code to me which changes xmlhttp to serverxmlhhtp on the assumtion that this "might" not create temporary internet files.
<%
Function GetHTML(strURL)
Dim objXMLHTTP, strReturn
Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
objXMLHTTP.Open "GET", "xxxxx.php?" & Request.ServerVariables("REMOTE_ADDR"), False
objXMLHTTP.Send
strReturn = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
GetHTML = strReturn
End Function
%>
Is there anyone that can confirm this for me as I can't access the temp int files and need a definitive answer to get my account re-instated.
Thanks!
This is quite a high traffic site, it did work, however my shared host suspended my account because of excessive temporary internet files (500 temp files created in a few minutes) these were being left on the server.
Someone has suggested the following code to me which changes xmlhttp to serverxmlhhtp on the assumtion that this "might" not create temporary internet files.
<%
Function GetHTML(strURL)
Dim objXMLHTTP, strReturn
Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
objXMLHTTP.Open "GET", "xxxxx.php?" & Request.ServerVariables("REMOTE_ADDR"), False
objXMLHTTP.Send
strReturn = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
GetHTML = strReturn
End Function
%>
Is there anyone that can confirm this for me as I can't access the temp int files and need a definitive answer to get my account re-instated.
Thanks!