|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
inserting information from another file as HTML
In php you would use the command:
PHP Code:
and this would allow me to insert the links.txt file in my current html file. Any suggestions on how to do this in ASP? Also any suggestions on how I could get this: PHP Code:
to work with asp? I installed Windows 2003 and to my knowledge it is not possible to get php to work yet.. and i need a solution.. so i'm turning to you guys. Thanks, Josh |
|
#2
|
|||
|
|||
|
IIS is a webserver, PHP is application, you won't have any prohibitions to using PHP on IIS.
yes, i can rewrite all this code in asp, do you need that still when you can just run php? |
|
#3
|
|||
|
|||
|
Yes could you please? Or at least the first, the mysql isn't as important...
|
|
#4
|
|||
|
|||
|
Dim fso, ts, s
Const ForReading = 1 Set fso = CreateObject("Scripting.FileSystemObject") Set ts = fso.OpenTextFile("c:\testfile.txt", ForReading) s = ts.Readall Response.Write "File contents = '" & s & "'" ts.Close you can go line by line if you want, that's just .readline instead of .readall... pretty simple You can use FSO to do other things too like write but just look stuff up on google if you have anyquestions on using it. |
|
#5
|
|||
|
|||
|
database (i'm sure you can pick up on what's goin here, you'll obviously need to customize what you need to print in the loop and the sqlselect line):
dim strSQL, rs Set con = server.createobject ("ADODB.Connection") con.Open "odbc","login","password" strSQL = "select * from actors" set rs = con.Execute (strSQL) while not rs.EOF response.write RS("actor") rs.MoveNext Wend rs.Close con.close |
|
#6
|
|||
|
|||
|
Something I just noticed.. I don't know if I should post here or not, but I am. I just installed windows 2003 standard. I then installed IIS 6.0 and ASP .NET. I then went to web services (under IIS manager) and allowed asp pages... but now i cannot load them. URL I get a 500 internal error... anyone familiar with this?
|
|
#7
|
|||
|
|||
|
PHP Code:
that's your real error. Go to tool->internet options->advanced tab, and disable "how friendly error messages". |
|
#8
|
|||
|
|||
|
Try to go there again.. it doesn't work for me.. it worked for like a split second...
|
|
#9
|
|||
|
|||
|
Microsoft VBScript runtime error '800a0035'
File not found /test.asp, line 8 same thing, are you including a file or something and it's not there? well in anycase, that's all i do is change the browser settings and i can see the error messages.... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > inserting information from another file as HTML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|