TinyPortal

Development => International => Spanish => Topic started by: jabisai on August 27, 2009, 02:04:51 PM

Title: Error al crear bloque php!!
Post by: jabisai on August 27, 2009, 02:04:51 PM
Hola amigos alguien me puede ayudar a poner este codigo en un bloque lateral, lo que pasa es que creo un bloque php y pego este codigo pero siempre me da error... :tickedoff:


<?php

   $ILf
= @fsockopen("www.intercambios-links.com", 80, $errno, $errstr, 3);
   if (
$ILf) {
       
$ILh  = "GET /jaula.php?code=FnwPHP HTTP/1.1\r\n";
       
$ILh .= "Host: www.intercambios-links.com\r\n";
       
$ILh .= "Connection: Close\r\n\r\n";

       
fwrite($ILf, $ILh);
       for (
$i = 1; !feof($ILf); $i++) {
           
$ILs = fgets($ILf, 128);
           if (
$i > 8) echo $ILs;
       }
       
fclose($ILf);
   }

?>


Tengo tinyportal 1.0 beta 4 y smf 1.1.10

gracias. :P
Title: Re: Error al crear bloque php!!
Post by: ZarPrime on August 27, 2009, 06:07:55 PM
Jabisai Hola,

Retire la apertura y cierre de etiquetas de PHP para que el código aparece como esta ...


    $ILf = @fsockopen("www.intercambios-links.com", 80, $errno, $errstr, 3);
    if ($ILf) {
        $ILh  = "GET /jaula.php?code=FnwPHP HTTP/1.1\r\n";
        $ILh .= "Host: www.intercambios-links.com\r\n";
        $ILh .= "Connection: Close\r\n\r\n";

        fwrite($ILf, $ILh);
        for ($i = 1; !feof($ILf); $i++) {
            $ILs = fgets($ILf, 128);
            if ($i > 8) echo $ILs;
        }
        fclose($ILf);
    }

   
Que debería funcionar.

ZarPrime
Title: Re: Error al crear bloque php!!
Post by: jabisai on August 27, 2009, 07:44:04 PM
I don't want to say nothing just Thanks! ZarPrime
Title: Re: Error al crear bloque php!!
Post by: ZarPrime on August 27, 2009, 10:25:16 PM
Sure, no problem.  I am glad we got you solved. :up:

ZarPrime