Best way to save a table human readable

Yep, using the native io functions worked great. Found help on this thread: Persistence of data? (SOLVED)

But I still have problems storing my files on a Apache2 Webserver without ssh/shell access.