Closed Thread Icon

Preserved Topic: SSI and PHP (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12414" title="Pages that link to Preserved Topic: SSI and PHP (Page 1 of 1)" rel="nofollow" >Preserved Topic: SSI and PHP <span class="small">(Page 1 of 1)</span>\

 
AT
Bipolar (III) Inmate

From: Louisville, KY, USA
Insane since: Aug 2000

posted posted 09-09-2002 10:59

Hey all, I have a bit of an issue... (Lets face it, I have many issues)
I have a chat program, and to be able to list the occupants I have to
use SSI, in a .shtml page. The thing is, my site is PHP and I'd like to
get the same results within PHP. The SSI looks like this.
<!--#include virtual="../cgi-bin/chats/public.cgi"-->

I don't know what to try that wont just pull in the text from the CGI.

All help is appreciated, thanks

*goes off to bed, right at 4:58am*



mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-09-2002 17:19

If PHP on your web server is configured to treat HTTP URLs as local files you can simply use include() function...

<?php

include("http://www.yourserver.com/cgi-bin/chats/public.cgi");

?>

Optionally, you can use virtual() function which emulates "virtual" SSI call...




[This message has been edited by mr.maX (edited 09-09-2002).]

AT
Bipolar (III) Inmate

From: Louisville, KY, USA
Insane since: Aug 2000

posted posted 09-10-2002 08:15

you freakin genius...

I tried it the other way, and of course it didn't work... but dang Max, you rock...

thank you

« BackwardsOnwards »

Show Forum Drop Down Menu