Hi, does anyone know where i can find out how to do this:
<%
' define the variables
dim objHTTP , objXML , objXSL
'create an instance of the xmlHTTP object
set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
' get the requested XML data from moreovers website
' you can get more examples at http://w.moreover.com/categories/category_list_xml.html
objHTTP.open "GET", "http://p.moreover.com/cgi-local/page?c=Webmaster%20tips&o=xml", false
objHTTP.send
' save the XML in the objXML object as XML
set objXML = objHTTP.responseXML
'create an instance of the DOM obdct
set objXSL=Server.CreateObject("microsoft.xmldom")
objXSL.async=false
' load the XSL style sheet into the objXSL object
objXSL.load(Server.MapPath("moreover.xsl"))
' check for errors in the XSL
if (objXSL.parseError.errorCode = 0) then
' parse the XML with the XSL file
Response.Write(objXML.transformnode(objXSL))
else
'if an error occurs, report it
Response.Write "Error: " & objXSL.parseError.reason & "<br> URL:" & objXSL.url
end if
'destroy the objects
Set objHTTP = Nothing
Set objXML = Nothing
Set objXSL = Nothing
%>
in PHP. It basically pulls an XML Style sheet to do a news feed but I really need to beable to do this in PHP instead of ASP.
Can anyone help?