feedburner
Enter your email address:

Delivered by FeedBurner

Consejos para Programadores. PHP coding!

CATEGORIAS: ,

Aquí va el código pequeño creado por mi para tal fin, para tener minima idea de como crear propio log. Muy popular entre programadores de latinchat, aunque muchos usan cbox, con este ejemplo, aprenderán como manejarlo.
Abran block de notas e introducir siguiente código y guardarlo como mmlog.php



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Generar Log</title>

</head>



<body>

<center>

<form action="mmlog.php" method="post">

Mensaje:

<input type="text" fsp="150" msp="250" name="file" />

<input type="submit" name="enviar" value="Enviar" />

</body>



<?php

extract($_POST);



$errorMsg = "";



$file=fopen("datos.txt","a") or die ("Unable to find the file datos.txt");

$myLog=$_POST["file"];

fwrite($file,$myLog."\n");

fclose($file);

?>

</html>

Subirlo a algun servidor que tenga soporte de PHP y ejecutarlo. Datos se guardarán en un archivo .txt llamado datos, el el mismo directorio donde haya este fichero.


Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!



2 comments:
gravatar
Anonymous said...
Sunday, February 28, 2010  

Hi everybody! I do not know where to start but hope this place will be useful for me.
Hope to get some help from you if I will have some quesitons.
Thanks and good luck everyone! ;)

gravatar
Anonymous said...
Thursday, April 18, 2013  

owgt8p2w

rys0pk12

f54yewr4t536

zf9myo8i

yqwr0qnb

Post a Comment