Jump to content
Fórum Script Brasil
  • 0

Problemas para gerar XML


Tchello

Question

Tenho o seguinte script:

<!--#include file="conexao.asp"-->

<%

Query="SELECT Nome,Foto,Descricao "

Query=Query&"FROM Fotos ORDER BY Ordem"

Set rs=Conexao.Execute(Query)

arquivo_xml= "fotos.xml"

set fso= createobject("scripting.filesystemobject")

set act= fso.CreateTextFile(server.mappath(arquivo_xml), true)

act.WriteLine("<?xml version=""1.0"" encoding=""ISO-8859-1"" ?>")

act.WriteLine("<root diretorio='fotos/'>")

do while not rs.eof

act.WriteLine("<foto img=""" & rs("foto") & """ nome=""" & rs("nome") & """>" & rs("descricao") & "</foto>" )

rs.movenext

loop

act.WriteLine("</root>")

act.close

%>

Local gera ok porém online dá erro...

Alguém sabe me dizer porque isso acontece???

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...