Almost scared to ask.
Moderator: General Moderators
Almost scared to ask.
But anybody here any good with asp ?
- scorphus
- Forum Regular
- Posts: 589
- Joined: Fri May 09, 2003 11:53 pm
- Location: Belo Horizonte, Brazil
- Contact:
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
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
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.
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.
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
I have developed alot of successfull codes with the help of that site