|
|
Joined: Jan 2001
Posts: 34
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 34 |
hi, i wanted to include a .ASP file into my .htm file....i found out that I must use SSI, so I changed my extension to .shtml and did the but I soon found that I wanted the output of the ASP file, not the ASP file itself. I would rather not convert my pages to ASP and then go from there - I would like to just include the output of my ASP into my .shtml file. is that possible?
i also tried the but produced an error...
any help or suggestions is appreciated.
-Brian
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
make sure the file is in the same directory or maybe try
[ 09-22-2001: Message edited by: raiyan ]
|
|
|
|
Joined: Jan 2001
Posts: 34
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 34 |
nope, the server said it cant execute cmd.
any other ideas?
-Brian
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
why not rename the extenstion .asp to .txt? Or are you trying to execute something? Ideally the include file is for txt files. for example, you could probably get away with html files, but for asp are different. Like cgi files are: But i'm not quite sure what it is for asp...
|
|
|
|
Joined: Feb 2001
Posts: 78
Member
|
Member
Joined: Feb 2001
Posts: 78 |
|
|
|
|
Joined: Jan 2001
Posts: 34
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 34 |
I believe I did try that Virtual thingamabob, but I believe that did not work.
I dont want to change the extension of the ASP file because I want that script to run, not just display the code. I also tried the exec thing and that was not allowes on my host.
-Brian
|
|
|
|
Joined: Sep 2000
Posts: 18
Junior Member
|
Junior Member
Joined: Sep 2000
Posts: 18 |
Server Side Includes can be called using different commands:
TEXT, HTML, SHTML OR CGI
CGI
Now here is the thing about SSI.. your server can be VERY picky on how you have to type out the command.
Some servers will take it as is:
some will error and you must type it out like this:
Whatever the case may be, it takes it from the ROOT directory, so you HAVE to make sure that you are typing it out from the root directory and not simply placing it in the same folder.
Both ASP and PHP cannot be executed using SSI because SSI requires the .shtml or .shm extension on your file and since both pages are 'executable' type pages, they are cannot simply run on virtual include tags.. OR exec cgi tags. Both ASP and PHP is what CGI and HTML is combined (the use of variables to execute an entire page).
|
|
|
|
Joined: Jan 2001
Posts: 34
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 34 |
Thanks. I already converted my site to ASP to solve all this problem. But thanks for letting me know all that.
-Brian
|
|
|
|
Joined: Sep 2000
Posts: 4,211
Master Hacker
|
Master Hacker
Joined: Sep 2000
Posts: 4,211 |
If you're still having trouble, please read this .
|
|
|
|
Joined: Jan 2001
Posts: 34
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 34 |
nope no problems....i just made my site ASP and it all works just fine... -Brian
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|