Problemas con el fwrite

From: Date: Sun, 16 Sep 2001 20:41:06 +0000
Subject: Problemas con el fwrite
Groups: php.general.es 
Request: Send a blank email to general-es+get-13892@lists.php.net to get a copy of this message
¿como puedo hacerque el fwrite me haga esto <? $fichero = "datos.php3"; $h = fopen($fichero, 'w+'); fwrite($h,'<? $horainicio[1] = "$horainicio[1]"; $horainicio[2] = "$horainicio[2]"; $horainicio[3] = "$horainicio[3]"; $horainicio[4] = "$horainicio[4]"; $horainicio[5] = "$horainicio[5]"; $horainicio[6] = "$horainicio[6]"; $horafin[1] = "$horafin[1]"; $horafin[2] = "$horafin[2]"; $horafin[3] = "$horafin[3]"; $horafin[4] = "$horafin[4]"; $horafin[5] = "$horafin[5]"; $horafin[6] = "$horafin[6]"; $lunes[1] = "$lunes[1]"; $lunes[2] = "$lunes[2]"; $lunes[3] = "$lunes[3]"; $lunes[4] = "$lunes[4]"; $lunes[5] = "$lunes[5]"; $lunes[6] = "$lunes[6]"; $martes[1] = "$martes[1]"; $martes[2] = "$martes[2]"; $martes[3] = "$martes[3]"; $martes[4] = "$martes[4]"; $martes[5] = "$martes[5]"; $martes[6] = "$martes[6]"; $miercoles[1] = "$miercoles[1]"; $miercoles[2] = "$miercoles[2]"; $miercoles[3] = "$miercoles[3]"; $miercoles[4] = "$miercoles[4]"; $miercoles[5] = "$miercoles[5]"; $miercoles[6] = "$miercoles[6]"; $jueves[1] = "$jueves[1]"; $jueves[2] = "$jueves[2]"; $jueves[3] = "$jueves[3]"; $jueves[4] = "$jueves[4]"; $jueves[5] = "$jueves[5]"; $jueves[6] = "$jueves[6]"; $viernes[1] = "$viernes[1]"; $viernes[2] = "$viernes[2]"; $viernes[3] = "$viernes[3]"; $viernes[4] = "$viernes[4]"; $viernes[5] = "$viernes[5]"; $viernes[6] = "$viernes[6]"; $materia[1] = "$materia[1]"; $materia[2] = "$materia[2]"; $materia[3] = "$materia[3]"; $materia[4] = "$materia[4]"; $materia[5] = "$materia[5]"; $materia[6] = "$materia[6]"; $materia[7] = "$materia[7]"; $materia[8] = "$materia[8]"; $materia[9] = "$materia[9]"; $materia[10] = "$materia[10]"; $materia[11] = "$materia[11]"; $materia[12] = "$materia[12]"; $profesor[1] = "$profesor[1]"; $profesor[2] = "$profesor[2]"; $profesor[3] = "$profesor[3]"; $profesor[4] = "$profesor[4]"; $profesor[5] = "$profesor[5]"; $profesor[6] = "$profesor[6]"; $profesor[7] = "$profesor[8]"; $profesor[9] = "$profesor[9]"; $profesor[10] = "$profesor[10]"; $profesor[11] = "$profesor[11]"; $profesor[12] = "$profesor[12]"; ?>"); fclose($h); header("location: horario.php3"); echo"Se están guardando los datos, por favor espera . . ."; ?> cambiando las variables que están entre comillas dobles por las originales del archivo anterior, lo he conseguido guardar pero me guarda esto <? $horainicio[1] = "$horainicio[1]"; $horainicio[2] = "$horainicio[2]"; $horainicio[3] = "$horainicio[3]"; $horainicio[4] = "$horainicio[4]"; $horainicio[5] = "$horainicio[5]"; $horainicio[6] = "$horainicio[6]"; $horafin[1] = "$horafin[1]"; $horafin[2] = "$horafin[2]"; $horafin[3] = "$horafin[3]"; $horafin[4] = "$horafin[4]"; $horafin[5] = "$horafin[5]"; $horafin[6] = "$horafin[6]"; $lunes[1] = "$lunes[1]"; $lunes[2] = "$lunes[2]"; $lunes[3] = "$lunes[3]"; $lunes[4] = "$lunes[4]"; $lunes[5] = "$lunes[5]"; $lunes[6] = "$lunes[6]"; $martes[1] = "$martes[1]"; $martes[2] = "$martes[2]"; $martes[3] = "$martes[3]"; $martes[4] = "$martes[4]"; $martes[5] = "$martes[5]"; $martes[6] = "$martes[6]"; $miercoles[1] = "$miercoles[1]"; $miercoles[2] = "$miercoles[2]"; $miercoles[3] = "$miercoles[3]"; $miercoles[4] = "$miercoles[4]"; $miercoles[5] = "$miercoles[5]"; $miercoles[6] = "$miercoles[6]"; $jueves[1] = "$jueves[1]"; $jueves[2] = "$jueves[2]"; $jueves[3] = "$jueves[3]"; $jueves[4] = "$jueves[4]"; $jueves[5] = "$jueves[5]"; $jueves[6] = "$jueves[6]"; $viernes[1] = "$viernes[1]"; $viernes[2] = "$viernes[2]"; $viernes[3] = "$viernes[3]"; $viernes[4] = "$viernes[4]"; $viernes[5] = "$viernes[5]"; $viernes[6] = "$viernes[6]"; $materia[1] = "$materia[1]"; $materia[2] = "$materia[2]"; $materia[3] = "$materia[3]"; $materia[4] = "$materia[4]"; $materia[5] = "$materia[5]"; $materia[6] = "$materia[6]"; $materia[7] = "$materia[7]"; $materia[8] = "$materia[8]"; $materia[9] = "$materia[9]"; $materia[10] = "$materia[10]"; $materia[11] = "$materia[11]"; $materia[12] = "$materia[12]"; $profesor[1] = "$profesor[1]"; $profesor[2] = "$profesor[2]"; $profesor[3] = "$profesor[3]"; $profesor[4] = "$profesor[4]"; $profesor[5] = "$profesor[5]"; $profesor[6] = "$profesor[6]"; $profesor[7] = "$profesor[8]"; $profesor[9] = "$profesor[9]"; $profesor[10] = "$profesor[10]"; $profesor[11] = "$profesor[11]"; $profesor[12] = "$profesor[12]"; ?> Gracias _______________________________________________________________ Date de alta en inicia y dispondrás de correo y espacio para tu página personal. http://inicia.es

« previous php.general.es (#13892) next »