Previous Thread
Next Thread
Print Thread
Rate Thread
#104302 09/22/2001 2:21 AM
Joined: Jan 2001
Posts: 34
Junior Member
Junior Member
Offline
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

Sponsored Links
#104303 09/22/2001 5:37 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
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 ]

#104304 09/22/2001 6:14 PM
Joined: Jan 2001
Posts: 34
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 34
nope, the server said it cant execute cmd.

any other ideas?

-Brian

#104305 09/26/2001 10:23 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
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... shocked

#104306 09/26/2001 10:47 PM
Joined: Feb 2001
Posts: 78
Member
Member
Offline
Joined: Feb 2001
Posts: 78
also you may try


Sponsored Links
#104307 09/26/2001 11:08 PM
Joined: Jan 2001
Posts: 34
Junior Member
Junior Member
Offline
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

#104308 09/29/2001 10:53 PM
Joined: Sep 2000
Posts: 18
Junior Member
Junior Member
Offline
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).

#104309 09/30/2001 1:51 AM
Joined: Jan 2001
Posts: 34
Junior Member
Junior Member
Offline
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

#104310 10/06/2001 1:31 AM
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 .

#104311 10/06/2001 12:56 PM
Joined: Jan 2001
Posts: 34
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 34
nope no problems....i just made my site ASP and it all works just fine... smile

-Brian

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)