PHPS Pastebin is a simple pastebin script, designed to be fast and secure.
It can be used to power up a pastebin sites, to highlight PHP code. It cannot highlight any other syntax, it's target is PHP(native highlight_string() call).
Please report any bugs to me! Any notes welcome!
Feel free to use these sources in your applications. I'd be pleased if you add this site url to your sources if planning to use my code ;)
The configuration of script is very easy and well-documented inside it. So please read the comments in configuration part of script.
[Live demo]
[Download]
Why use PHPS Pastebin?
- No special server setup, no databases, no any other extentions required to run it!
- No client capabilities required except for HTML rendering! No cookies, no javascript, no external plugins binding!
- Has no vulnerabilities! (Or has if you discoved one in PHP functions used here or zlib)
- Very light-all in one script!
Are you already a user of PHPS Pastebin?
If you already a PHPS Pastebin user and have an account on ohloh.net, and want to add yourself as user of this software so help our project to grow and become more popular,
click button on the bottom of this page(if you don't see it you should enable JS if you have it disabled. or there's something with ohloh.net server).
How to install?
- Set a file creating permission for webserver to a home directory(or the sources directory).
- Copy this file to home directory.
- Optionally set a password for adding sources and tune up other settings. You can also use "valid html" image (html.png) from the package on the pages.
Upgrade notes
If you were previously using PHPS Pastebin 0.23-0.24 you can just replace your current script, leaving database file untouched, it will still be interpreted. Config lines are now in ./conf.php.
Version History
- 0.25.1 - 28.02.2010 | [Download]
Bugfix release:
* Fixed bug with invalid URLs showing up if SSL is enabled when you paste.
MD5: 5bd64343594ff1a57eef5751feb30c94
SHA1: 996abc7e3763e6c11679f8854bc6ac94ac3eadf9
- 0.25 - 25.01.2010 | [Download]
I know you've been waiting for a new release, thanks for keeping up-to date! Finally, I've managed to work over previous release and add some useful features, and removed some outdated/buggy code.
Changes in 0.25:
+ Added "Private" option, allowing you to paste something without having paste link added to publicy visible index.
* Code was rewritten in a better way to improve it's "readability" =)
* Fixed bug with index file empty lines causing warnings.
* Config is now separated from index.php and located in conf.php for an easier upgrading.
MD5: 506eed395b0261a1e41c3e995406c270
SHA1: d045efd83e16534c9d3fc39f01acbc715180a5c4
- 0.24 RELEASE - 18.06.2009 | [Download]
Added IP logging + timestamps. Code is more indented, some of functions were rewritten or removed.
Default encoding is UTF-8 now and works well with it.
This release is the first one to pass testing with php.ini's error_reporting=E_ALL | E_STRICT. Previous versions don't pass this test.
MD5: 8d6f288a0fb30418f8500d78c9eb3495
SHA1: 5db5d1c0389b965db740b74d2a76b58ebb7f9dc1
- 0.23 STABLE - 29.04.2009 | [Download]
Added an index file for pastes, paste remove URLs and view of the recent entries on main page.
Some optimisation, code tweaks added.
MD5: fa6d9259a06b41b87795a29acad7196d
SHA1: 36aebf4f638c6b66e0828ce8bc43f45d9d93f1dd
- 0.22 STABLE - 18.04.2009 | [Download]
Fixed some bugs 0.21, added extra capabilities, ex. setting up a path to store sources, limits for pasted code/title length.
MD5: 85de7d539d1766b95a1d31c601fd0eed
SHA1: 35ce5a8dbc88840a19e27f325b2e57942ae4b574
- 0.21 RELEASE - 17.04.2009 | [Download]
Since v 0.2 it dumps pasted source into php-parsed files.
MD5: 4d12b769af940e8a94e87478d60af6ed
SHA1: fc6bba0418182664c8d4eccd05d0fce557e3f1b5
- 0.1 RELEASE - 16.04.2009 | [Download]
Used webserver config bounded to php_highlight_file function inside php module to highlight code in .phps files. Confirmed to work with apache only.
MD5: 0accdd6f8c81263e75fc6438b21a6579
SHA1: b308359f5c7feccc918c6f64226e4b77ac306d2f
If you wish to contact me or report a bug, drop a line to email specified in the sources. [My PGP public key]
You can find me @ irc.freenode.net in #gentoo, #gentoo-ru, #nginx, #python, and others, under nicks Web31337/InCaribbeanBlue/_AnywhereIs_/ADayWithoutRain.
Be sure i will read your message in max 12 hours, min 1 minute. :)
- This project has a statistics on [ohloh.net]!
[Paste source]
Coded by edK
This site has valid HTML 4.01!