Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!-- versione in cui si leggono le righe dal file con una sola istruzione -->
- <?php
- $righe_config = file("config.ini"); //, FILE_IGNORE_NEW_LINES); //legge tutte le righe nell'array
- for ($i=0; $i<count($righe_config); $i++)
- $righe_config[$i] = rtrim($righe_config[$i]);
- for ($i=0; $i<count($righe_config); $i++)
- echo "#" . $righe_config[$i] . "#<br>\n";
- ?>
- <html lang="<?php echo $righe_config[0];?>">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- </head>
- <body>
- <?php
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement