Ef þú notar ‘a’ í fopen($blogg, ‘a’) þá eins og segir í manualnum: 'a' - Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it. Þá setur hún bendilinn í endan á skjalinu. Ef þú vilt setja textann efst í skjalið seturu þetta: 'r' - Open for reading only; place the file pointer at the beginning of the file. Það er: fopen($blogg, ‘r’) Getur séð þetta nánar í manualnum á php.net