[[STRipPEr]] Posted April 17, 2007 Report Share Posted April 17, 2007 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 More sharing options...
magno Posted April 18, 2007 Report Share Posted April 18, 2007 Gracias.. lo muevo a sección de scrith.. :) Link to comment Share on other sites More sharing options...
eterno_inocente Posted April 18, 2007 Report Share Posted April 18, 2007 buen script.... no muy util para mi ..pero bueno al fin y al cabo ..haha Link to comment Share on other sites More sharing options...
[[STRipPEr]] Posted April 18, 2007 Author Report Share Posted April 18, 2007 Onda sirve pa ponerlo en los blogs ( blogger , word press etc ) lo puse en el mio xD Link to comment Share on other sites More sharing options...
pk_2r Posted April 19, 2007 Report Share Posted April 19, 2007 ta weno ql Link to comment Share on other sites More sharing options...
amidasux Posted April 24, 2007 Report Share Posted April 24, 2007 lo voy a colocar en el blog que estoy haciendo Link to comment Share on other sites More sharing options...
ronaldo_9 Posted April 29, 2007 Report Share Posted April 29, 2007 ta weno ah :D Link to comment Share on other sites More sharing options...
nashito Posted May 13, 2007 Report Share Posted May 13, 2007 hola buenísimo el código :) pero si quiero colocar solo una foto y no varias? Link to comment Share on other sites More sharing options...
weblan Posted May 18, 2007 Report Share Posted May 18, 2007 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 More sharing options...
HostMan Posted June 11, 2007 Report Share Posted June 11, 2007 jaja wenisimo Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now