pragmaMx Support Forum

pragmaMx => Individuelle Anpassungen => Thema gestartet von: Mecki am 26 Februar 2006, 14:31:54

Titel: Block Chatuser Abfrage
Beitrag von: Mecki am 26 Februar 2006, 14:31:54
Hi,

ich brauche einen block, wo diese Abfrage rein muss. Kann mir bitte ein Progger den Block-Schnipsel coden  ;)

LG
Mecki

<!--#include virtual="/cgi-bin/gtchat/gtchatusers.pl"-->
Titel: Re: Block Chatuser Abfrage
Beitrag von: Andi am 26 Februar 2006, 15:27:50
Moin :)

ungetestet:


<?php
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
ob_start();
?>

<!--#include virtual="/cgi-bin/gtchat/gtchatusers.pl"-->
<?php
$content 
ob_get_clean();
?>



oder eher so:
<?php
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
$content '<!--#include virtual="/cgi-bin/gtchat/gtchatusers.pl"-->';
?>



Wenn das nicht funzt, dann probier mal, ob es geht, wenn du diese Codezeile einfach als HTML-Block eingibst.


Wobei die Frage ist, ob das SSI Script überhaupt includet wird bei einer .php Dateiendung?
Titel: Re: Block Chatuser Abfrage
Beitrag von: Mecki am 26 Februar 2006, 19:49:52
Hi Andi,

danke klappt leider nicht, ist aber auch nicht so tragisch.

LG
Mecki