I was wondering if there was any way to read a css file with php and put the values in input.
For example: I have an input of type text that is called color and in the css I have a line that is called .Cabecera. Would there be any way to put the css text in that input?
This is the code that I have at the moment, but it reads all the css and puts it in a textarea.
$archivo = fopen($Ruta,"r") or exit;//indico archivo y que voy a hacer un read (r)
while(!feof($archivo)) {
$Mensaje .= fgets($archivo);
}
fclose($archivo);
<textarea name="Contenido" id="Contenido" style="width: 99%; height: 99%; resize: none;"><?=$Mensaje; ?></textarea>
I just want to read line by line and put it in different text type input.