Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMLHTTP Temporary Internet Files

Status
Not open for further replies.

sji2671

IS-IT--Management
Joined
Jan 25, 2004
Messages
3
Location
GB
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top