A php interface for publishing microblogposts to your selfhosted twtxt.txt
-
Upload the files to you webserver via ftp
- index.html - the UI for the app
- config.php - the backend that writes to you txt file
- twtxt.txt
-
Edit config.php
- add the location of you twtxt.txt file
- you can place the file in and other folder that the files like "../twtxt.txt" to get it in the root of your URL
- default: twtxt.txt
-
Navigate to www.yourdomain.net/phpub2twtxt/index.php in you web browser and start microblogging.
-
Tell the world to check out you awesome micro blog at www.yourdomain.net/twtxt.txt
-
If you want/need to edit or delete you posts then you need to log in via ftp and just edit your text file.
There is no build-in access control, so whoever know the URL of where you uploade these files will have the power to post as you to your twtxt.txt-file!!!!
Use of this software is totally at one's own risk!!!
-
Security / login
- using access restriction to the folder via cPanel
- integrat it into yellow cms
- using some (other) .htaccess or .htpasswd magic
-
Missing line break depending on how the file was left the last time
- add the line break as the first thing
- check for line breaks at EOF before writing
-
Combine into just one .php file insted of two (UI and backend)
-
Find a better name, such as
- phpost
- picopub
- picopost
- twtpub
- nanopub
-
Make a gif like: https://raw.githubusercontent.com/gabrieldejesus/register-with-txt/master/web-preview.gif
-
Integrate with a nice render of twtxt
Code based on register-with-txt by Gabriel de Jesus and bits of php to make it write just one line of twtxt compliant data at a time.
Distributed under the MIT License. See LICENSE for more information.