Jump to content

Ultimas de tu Fotolog


Recommended Posts

Bueno el otro dia hice este codigo que te muestra las ultimas fotos de tu fotolog.com

 

<center>
<?php
$fl = $_GET['flog'];
if ($_GET['orden'] == h) { $il = " "; }
elseif  ($_GET['orden'] == v) { $il = "</br></br>"; }
$fp = fsockopen("www.fotolog.com", 80, $errno, $errstr, 30);
if (!$fp) {
   echo "$errstr ($errno)<br>\n";
} else {
   $salida = "GET /".$fl." HTTP/1.0\r\nHost: www.fotolog.com\r\n\r\n";
    fwrite ($fp, $salida);
   while (!feof($fp)) {
       $content = fgets($fp, 128);
if (ereg("rf_src", $content)) { 
      if (substr($content, 13, 4) == http) {
echo "<a href='http://www.fotolog.com/".$fl."' title='".$fl."'><img class='recentFoto' src='".substr($content, 13,-3)."' width='50' height='50' border='0' alt='drchalao photo '></a>".$il;
}
       }
       }

   fclose ($fp);
}

?>
</center>

 

/?flog=TUFOTOLOG&orden=H

/?flog=TUFOTOLOG&orden=V

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Hola bueno agradecer primero, tengo un blog en wordpress, pero me dio el siguiente error.

 


Warning: fsockopen(): unable to connect to www.fotolog.com:80 in /var/www/html/virtual/misitio.cl/www/directorio/wp-content/themes/peaceful-rush/sidebar.php on line 43
Connection refused (111)

 

Te agradeceria si me puedes orientar un poco, el codigo lo pegue tal cual como esta y obviamente modifique mi log en $fl = $_GET['flog'];

 

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...