|
82
|
Programación / PHP / Re: MZK MezzengerKlient - Clase PHP para hacer webmessengers y bots (MSNP9)
|
en: 14 Marzo 2007, 17:53 pm
|
En Downloads: kontaktzgrabber.php A simple example on how to use MezzengerKlient for getting all…f a user Jan 28 736 bytes 120 miobot_base.php This program is an example on how to use the MZK library for m…g a BOT. Jan 26 3.9 KB 125
Si, pero eso eso son paginas de ejemplo, lo que se necesita es el mzk.php y eso no esta para descargar. Un saludo
|
|
|
84
|
Programación / PHP / [Codigo] Anti leech en php (o como se diga) :D
|
en: 17 Enero 2007, 18:44 pm
|
Hola de nuevo! Estaba navegando y encontre un codigo que parece ser de gran utilidad para que no averiguen los links de descarga, segun dice la web de la que la coji. Bueno aqui os lo dejo y espero que sea de utilidad!: <?php /* Copyright (c) 1999 Marcel Lemmen E-mail: lemmen@support.nl All rights reserved. */
$files=array( 'track01.mp3', 'escreen.exe'); $filenames=array( 'Thank ABBA for the music.mp3', 'Escreen.exe'); $additional_info=array( 'Various artists - Thanx ABBA for the music : 4978602 by tes', 'Shareware program to make a screenshot: 529920 bytes'); $url= "/home/lemmen/public_html/data/"; /* When the files are on another server, use the whole address (http://www.server.com/dir/) in stead of /home/lemmen... */ $referer=ereg_replace( "\?.", "",$HTTP_REFERER); $thisfile= "http://$HTTP_HOST$PHP_SELF"; if ($referer!=$thisfile){ echo "<center><big>Homepage: <a href=\"http://home.support.nl/~lemmen\"> http://home.support.nl/~lemmen</big><br><hr><br><br></center>"; for ($i=0;$i<count($files);$i++) echo "<P><A HREF=\"$PHP_SELF?$i\">",$filenames[$i], "</A> $additional_i nfo[$i]\n"; } else { $i=$QUERY_STRING; $total=$url . $files[$i]; Header ( "Content-Type: application/octet-stream"); Header ( "Content-Length: ".filesize($total)); Header( "Content-Disposition: attachment; filename=$filenames[$i]"); readfile($total); } ?>
Un saludo!!
|
|
|
85
|
Programación / PHP / Re: GD y GD2 ¿? [Ayuda]
|
en: 17 Enero 2007, 14:32 pm
|
Ahm esque lo vi en lo de sube tu img que dice que aceta psd's.. y lo del php para crear un gd, alguien me podria poner asi un ejemplo con un codigo, que sobreponga una imagen en otra que escriba algo, y yo que se algo mas xD , bueno pues muchas gracias a todos
Un saludo!
|
|
|
86
|
Programación / PHP / GD y GD2 ¿? [Ayuda]
|
en: 14 Enero 2007, 00:22 am
|
Hola de nuevo chivos/as!
Venia a buscar ayuda de un tema que creo que es interesante. Son las librerias GD a ver si lo entiendo de una vez porque he encontrado unos cuantos codigos, pero no los entiendo porque no los explican y he intentado hacer alguno, pero no me ha salido, y queria a ver si me explicabais para que sirve cada cosa y eso de superponer una imagen con otra, de escribir en una imagen y tal, y una dudilla aparte, se podria ver un psd con el GD?, espero que me ayudeis, bueno un saludo y gracias de antemano a todos
|
|
|
89
|
Programación / PHP / Re: link con php
|
en: 15 Diciembre 2006, 15:34 pm
|
OnBlur es cuando le quitas el foco, o lo que es lo mismo, cuando le quitas el raton de encima, pepelon, eso da igual que lo pongas de ese modo, solo copia la url y lo pones en el navegador, y se vera igualmente, copias y pegas la imagen Cito a la pagina: <img src="/display.php?id=34" border="0">With an ever changing ID of course. That's the part referencing my images in the database. The following is the code from the script which I use to retrieve the image from the database: <?
$connection=@mysql_connect(...);
@mysql_select_db(...);
$query="SELECT mime, file FROM images WHERE id=".$_GET["id"];
$rawdb=@mysql_query ($query,$connection);
if($rawdb AND @mysql_num_rows($rawdb)>0){
$array=@ mysql_fetch_array($result);
if (!empty($array["fileContents"])){
// Output the MIME header
header("Content-Type: ".$array["mime"]}");
// Output the image
echo $array["file"];
}else{
// something else...
}
@mysql_free_result($rawdb);
}else{
// something else...
}
@mysql_close($connection);
?>Since I already have a session for each user that comes to my website, I just added the following: <img src="/display.php?id=34&sid=3839839039039393829" border="0">And implement a small session checkup in the script itself: <?
session_start();
if($_SESSION["is_known"]){
// do database calls
}else{
header("Location:http://mydomain.tld/dontstealmyimages.html");
}
?>
|
|
|
90
|
Programación / PHP / Re: No funcionan los includes???
|
en: 13 Diciembre 2006, 21:21 pm
|
Ayyy!! que biennn!! Diste con la solucion, xD, como en lycos funcionaba, no me habia fijado ien en eso, la verdad es que no le daba importancia, pero si, asi es, bueno, muchisimas gracias a todos, que dios os bendiga hermanos (xD) Un saludo!
|
|
|
|
|
|
|