Almost scared to ask.

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Almost scared to ask.

Post by ol4pr0 »

But anybody here any good with asp ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

ASP has nothing to do with client-side, just like PHP it's a server-side architecture.
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Well sorry for putting that in the wrong forum section, however are you any good with it ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

sorry no.
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

To bad, thanks anyway
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

out of curiousity, what are you looking for, or need help on?
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

I played with it a bit, about 1 and a half year ago.

My employee (the Multimedia Cordinator) wanted someone PHP skilled developers (students) to change his company (my University) website from Widows+IIS+MSSQL+ASP to Linux+Apache+MuSQL+PHP (LAMP) and in the meanwhile changes were yet in planing stage, mantain the ASP site. Two colleagues and me got in the challenge and for months we've been dealing with ASP to then, five or six months later, start building the PHP site, which runs nowaday. I'm not part of the crew anymore, and they change it a lot. You can check it clicking http://www.unbh.br

Anyways, what do you need so far?

Hey feyd, move this thread to the General Discussion forum :)

-- Scorphus
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

I wrote:(...) Hey feyd, move this thread to the General Discussion forum :) (...)
Miscellaneous is quite a great forum for this conversation ;)
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Well it should be simply but.. however..

A text file needs to be read out and displayed on screen, after that the file must be deleted. If the file doensnt exist at all, error_msg

the following code will return no such file... all the time. if i take out the if part it will give me the error that the object delete is not a valid method.

Code: Select all

<%
Dim filename, content
filename = "textfile.txt"

Set fs=Server.CreateObject("Scripting.FileSystemObject")


If fs.FileExists(filename)=true Then

Set f=fs.OpenTextFile(Server.MapPath(filename), 1)

do while f.AtEndOfStream = false
	 content = content & f.ReadLine & ""
loop

Response.Write(content)

f.Close
f.Delete
Set f=nothing
Set fs=nothing

else
    response.write "No such file or directory!"
Set fs=nothing
end if
%>
Last edited by ol4pr0 on Tue Jul 06, 2004 3:36 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I moved it here for the "other languages" component of this forum's description..
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

Well, you could try changing these:

1. If fs.FileExists(Server.MapPath(filename))=true Then

2. fs.DeleteFile(Server.MapPath(filename))

Tell me what you get.

Regards,
Scorphus.
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Have a good read at the FileSystemObject here http://www.sloppycode.net/fso

I have developed alot of successfull codes with the help of that site :)
Post Reply