Skip to content

A php interface for publishing micro blog posts to your selfhosted twtxt.txt

License

Notifications You must be signed in to change notification settings

sorenpeter/phpub2twtxt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpub2twtxt

A php interface for publishing microblogposts to your selfhosted twtxt.txt

Screenshot

Setup and use

  1. 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
  2. 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
  3. Navigate to www.yourdomain.net/phpub2twtxt/index.php in you web browser and start microblogging.

  4. Tell the world to check out you awesome micro blog at www.yourdomain.net/twtxt.txt

  5. If you want/need to edit or delete you posts then you need to log in via ftp and just edit your text file.

WARNING!

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!!!

Issues

  • 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

Ideas

Meta

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.

About

A php interface for publishing micro blog posts to your selfhosted twtxt.txt

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 75.5%
  • PHP 24.5%