TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 19, 2024, 07:14:18 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 266
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 123
  • Total: 123

Error al crear bloque php!!

Started by jabisai, August 27, 2009, 02:04:51 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

jabisai

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$errstr3); 
    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($ILf128); 
            if (
$i 8) echo $ILs
        } 
        
fclose($ILf); 
    } 

?>



Tengo tinyportal 1.0 beta 4 y smf 1.1.10

gracias. :P

ZarPrime

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

jabisai

I don't want to say nothing just Thanks! ZarPrime

ZarPrime

Sure, no problem.  I am glad we got you solved. :up:

ZarPrime