For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > April 2004 > Help with ASP on a Linux server









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Help with ASP on a Linux server
NEWWebDeveloper@aol.com

2004-04-28, 9:30 am

The folowing code reads the file correctly on my localhost

<%
Dim urltext, MYPath
MYPath = Server.MapPath("testread.txt")
Set Fconn = server.CreateObject("Scripting.FileSystemObject")
Set file = Fconn.OpenTextFile(MYPath,1,false)
output = file.readall
file.close
Set file = nothing
Set Fconn = nothing
Response.write output
%>

But when I upload it to my website I get a blank. The testread.txt
file is definitely present on the web site server


Alan Howard

2004-04-28, 4:39 pm

Xref: kermit microsoft.public.vb.general.discussion:446238

Linux box? Does the FSO object exist on a Linux box? File system
permissions?


<NEWWebDeveloper@aol.com> wrote in message
news:6s7v80548f8tpftbftl5m0fgfm2p51vhac@
4ax.com...
> The folowing code reads the file correctly on my localhost
>
> <%
> Dim urltext, MYPath
> MYPath = Server.MapPath("testread.txt")
> Set Fconn = server.CreateObject("Scripting.FileSystemObject")
> Set file = Fconn.OpenTextFile(MYPath,1,false)
> output = file.readall
> file.close
> Set file = nothing
> Set Fconn = nothing
> Response.write output
> %>
>
> But when I upload it to my website I get a blank. The testread.txt
> file is definitely present on the web site server
>
>



Alan Howard

2004-04-28, 4:39 pm

Try microsoft.public.inetserver.asp.general.

<NEWWebDeveloper@aol.com> wrote in message
news:6s7v80548f8tpftbftl5m0fgfm2p51vhac@
4ax.com...
> The folowing code reads the file correctly on my localhost
>
> <%
> Dim urltext, MYPath
> MYPath = Server.MapPath("testread.txt")
> Set Fconn = server.CreateObject("Scripting.FileSystemObject")
> Set file = Fconn.OpenTextFile(MYPath,1,false)
> output = file.readall
> file.close
> Set file = nothing
> Set Fconn = nothing
> Response.write output
> %>
>
> But when I upload it to my website I get a blank. The testread.txt
> file is definitely present on the web site server
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com