recebe.php
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Última revisãoAmbos lados da revisão seguinte | |||
recebe.php [2008/10/15 09:29] – Nova página: Script "recebe.php", que recebe dados enviados via http. <source lang="php"> <? # recebe arquivo if (!empty($_POST['nome'])) { $fh = fopen($_POST['nome'],"w"); $dados = bas... cartola | recebe.php [2008/11/05 17:18] – ajustado para receber e acertar data do arquivo enviado cartola | ||
---|---|---|---|
Linha 3: | Linha 3: | ||
<? | <? | ||
+ | # verifica se arquivo ja existe | ||
+ | if (!empty($_GET[' | ||
+ | if ( file_exists($_GET[' | ||
+ | print " | ||
+ | } else { | ||
+ | print " | ||
+ | } | ||
+ | exit; | ||
+ | } | ||
# recebe arquivo | # recebe arquivo | ||
if (!empty($_POST[' | if (!empty($_POST[' | ||
Linha 21: | Linha 30: | ||
$md5 = system($cmd); | $md5 = system($cmd); | ||
print $_POST[' | print $_POST[' | ||
+ | } | ||
+ | if (!empty($_POST[' | ||
+ | $cmd = "touch -t " . $_POST[' | ||
+ | $execucao = system($cmd); | ||
} | } | ||
?> | ?> | ||
recebe.php.txt · Última modificação: 2009/02/17 19:21 por cartola