Ver Mensaje Individual
  #9 (permalink)  
Antiguo 03/07/2012, 15:22
Avatar de Atomycko
Atomycko
 
Fecha de Ingreso: diciembre-2005
Ubicación: Zapopan Jal.
Mensajes: 92
Antigüedad: 18 años, 4 meses
Puntos: 12
Respuesta: Copiar archivo .php como .doc

Solo para no dejar dudas.

Intente hacerlo como lo planteaste pero al parecer file_get_contents() tampoco acepta querystring, me da el siguiente error:
Código HTML:
Warning: file_get_contents(dir/word.php?id=4) [function.file-get-contents]: failed to open stream: No error in D:\www\peticiones.php on line 82
Error
El codigo es:
Código PHP:
$id $_GET['id'
$put file_put_contents('rid/' $id '.doc'file_get_contents('dir/word.php?id=' $id)); 
if(
$put === false){ 
    echo
'Error'

__________________
PD: Los acentos fueron secuestrados.