Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/04/2010, 17:03
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Pregunta Abrir archivo para escribir en anteultimo renglon

Tengo un archivo php con definiciones de variables. Y necesito escribir dinamicamente algunas otras variables. Pero como hago para escribir en la última linea, antes de :

?>

archivo.php
Código PHP:
<?php
$contents 
"Inhalt";
$installation "Installation und Betrieb";
$layout "Art of Illusion Einführung";
$modelling "Modelling";
$lights "Lichter";
$textures_and_materials "Texturen und Material";
$textures "Texturen";
$materials "Materialien";
$rendering "Rendering";
$animation "Animation";
$scripting "Scripting";
$whatsnew "Was ist neu";

?>
Mi codigo por ahora es:
Código PHP:
                $pagina=fopen("Library/main_".$listLang.".php""a");
                
fwrite($pagina'$newVar = '.$content); 
                
fclose($pagina);