Page 1 of 1

Almost scared to ask.

Posted: Tue Jul 06, 2004 3:00 pm
by ol4pr0
But anybody here any good with asp ?

Posted: Tue Jul 06, 2004 3:12 pm
by feyd
ASP has nothing to do with client-side, just like PHP it's a server-side architecture.

Posted: Tue Jul 06, 2004 3:14 pm
by ol4pr0
Well sorry for putting that in the wrong forum section, however are you any good with it ?

Posted: Tue Jul 06, 2004 3:15 pm
by feyd
sorry no.

Posted: Tue Jul 06, 2004 3:17 pm
by ol4pr0
To bad, thanks anyway

Posted: Tue Jul 06, 2004 3:18 pm
by feyd
out of curiousity, what are you looking for, or need help on?

Posted: Tue Jul 06, 2004 3:22 pm
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

Posted: Tue Jul 06, 2004 3:23 pm
by scorphus
I wrote:(...) Hey feyd, move this thread to the General Discussion forum :) (...)
Miscellaneous is quite a great forum for this conversation ;)

Posted: Tue Jul 06, 2004 3:32 pm
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
%>

Posted: Tue Jul 06, 2004 3:33 pm
by feyd
I moved it here for the "other languages" component of this forum's description..

Posted: Wed Jul 07, 2004 12:31 pm
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.

Posted: Fri Jul 09, 2004 10:55 am
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 :)