cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthony herve <anthony_he...@yahoo.fr>
Subject <xsl:processing-instruction name="php"> question
Date Fri, 04 Feb 2005 14:40:28 GMT
Hello,

I try to include in a xsl document a php tag but I get an error I can't solve. My
xsl:processing-instruction is as follows :

<xsl:processing-instruction name="php">
<xsl:text>
$url = "http://spy1.spywords.com/?" .
       "sid=XXXX" . "&" .
       "url=" . urlencode($_SERVER['REQUEST_URI']) . "&" .
       "agent=" . urlencode($_SERVER["HTTP_USER_AGENT"]) . "&" .
       "ip=" . $_SERVER["REMOTE_ADDR"] . "&" .
       "code=" . $_SERVER["REDIRECT_STATUS"];
 if (!eregi($_SERVER["HTTP_HOST"],$_SERVER["HTTP_REFERER"])){
  $url .= "&ref=" . urlencode($_SERVER["HTTP_REFERER"]);
 }
 $Shandle = @fsockopen("spy1.spywords.com", 80, $errno, $errstr, 3);
 if($Shandle){
  @readfile($url);
  fclose($Shandle);
 }
</xsl:text>
</xsl:processing-instruction>

What could be wrong ?

Thanks for your help.

Best regards.

Anthony



	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message