SSI in .asp
Forgive me if the term isn't SSI, but here's my situation. I have one webpage of content on my website/server that is written in html (php extention but there's no actual php code). My friend has his website that is totally .asp, which I don't know anything about. We want the content of my one webpage to be "called" and "included" on his website, and appear within his website template (header/footer/nav).
He claims that he can't get the include to work because the content being called is on a different server. Sorry, I don't know what specific code he tried or what error he may have seen but is it even possible to do what we want? Maybe the problem is on my end, with my server not allowing it? I dunno? Are there other code variations that may be worth trying? At the moment he says we've got to do this with an iFrame, which I know won't work in pre-v7 Netscape.
Suggestions? Thanks
Mark Hensler posted this at 17:15 — 5th August 2003.
He has: 4,048 posts
Joined: Aug 2000
As far as I know, SSI only works when including files from localhost, not from remote machines.
With other languages, I've used sockets to establish a TCP/IP connection. Then manually send a HTTP Request header, and read the HTTP Response. I just did some searching for code on ASP sockets, but I can't find any. Just people's custom DLLs that they're trying to sell.
I've got VB6 winsock code. If he can figure out how to convert to ASP, I can post it for ya.
Otherwise, you may have to move a copy of the files to the other machine.
Mark Hensler
If there is no answer on Google, then there is no question.
m3rajk posted this at 15:10 — 6th August 2003.
They have: 461 posts
Joined: Jul 2003
you can with php... as long as you open a socket first.
it explicitly states that on the info for include() on php.net
however,t here's another issue here....php v asp. it's easier to move to php, whcih from what i've seen is a better lang anyway.
look up asp.php
POSIX. because a stable os that doesn't have memory leaks and isn't buggy is always good.
Mark Hensler posted this at 20:07 — 6th August 2003.
He has: 4,048 posts
Joined: Aug 2000
PHP include() does not require you to open a socket for you to include a remote file. It requires 'allow_url_fopen' to be enabled (which may be set at runtime).
"better" is such a vague word. IMO, PHP is the easiest and fastest to learn. But show me an interpreted language that can compete with a compiled language for speed and power. ASP can utilize Visual Basic code compiled into .dll's.
Mark Hensler
If there is no answer on Google, then there is no question.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.