You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by anthony herve <an...@yahoo.fr> on 2005/02/04 15:40:28 UTC

question

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


Re: question

Posted by anthony herve <an...@yahoo.fr>.
Hello Joerg,

After having changed & by &amp;, it works.
Thanks for your help.

Anthony


 --- Joerg Heinicke <jo...@gmx.de> a écrit : 
> On 04.02.2005 15:40, anthony herve wrote:
> > 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 ?
> 
> The ampersands.
> 
> Joerg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
>  


	

	
		
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


Re: question

Posted by Joerg Heinicke <jo...@gmx.de>.
On 04.02.2005 15:40, anthony herve wrote:
> 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 ?

The ampersands.

Joerg

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