Pastebin v0.40 released
There hasn’t been a source release of pastebin.com in over a year, and I promised one in April, and here it is!
There’s no new features yet, just what you see on pastebin.com, but the code has been substantially reworked from the last available release. Source is GPL licenced, if you have any questions, add them as comments to this article in case the answers are of benefit to others…
Download pastebin.tar.gz (130 KB)

1Stephan
wrote on 23 April 2006 at 22:18
Hi Paul,
thanks for the code ! But I have a problem if I choose Java:
Query failure: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\n.java .de1, .java .de2 {font-family: \’Courier New\’, Courier
update pastebin set codefmt=’
I havent any problem with the other language only java.
Any Ideas ?
Cheers
Stephan
2lordelph
wrote on 23 April 2006 at 22:51
Going live with the new version shook a few bugs out I didn’t capture before – all sorted now!
3Zachariah
wrote on 25 April 2006 at 15:47
Great Sir.
4Bruce
wrote on 25 April 2006 at 21:12
Any chance of also releasing this under a BSD license? I can’t use it if it’s GPL.
5lordelph
wrote on 26 April 2006 at 9:46
Bruce – I tried to email you but not had a reply. What do you want to that would violate the GPL, i.e. what is it about a BSD licence you need?
6Zachariah
wrote on 26 April 2006 at 16:24
$post['downloadurl']=”pastebin.php?dl=$pid”;
- great add-on
Idea:
html view | download | new post
“html view” would be a simple preview output to show the user their output on a webpage. This would be nice for html, dhtml, java, css, more …
Perhaps inline Iframe that shows onclick or new window for the output.
Thank you for your time and energy.
7lordelph
wrote on 26 April 2006 at 16:36
“HTML view” might be too much of an XSS target, e.g. you could craft a page which looked like pastebin.com, but which said “help me with the bandwidth, donate a buck via paypal…” – you get the idea.
8reisio
wrote on 1 May 2006 at 21:26
I couldn’t find a bug reporting area, so I’ll just say here: there’s no such thing as “HTML 4.0.1″
There wouldn’t really be much formatting difference between older versions and even XHTML or XML (and its children), either, but :p This is why validator.w3.org is for “Markup”, not just HTML or something else.
…and oh ya, pastebins rock
gj
9lordelph
wrote on 2 May 2006 at 9:03
Well spotted, I think that text was originally copied from the GeSHi source but I’ve corrected it now. Thanks for letting me know.
10Nick
wrote on 26 August 2007 at 13:16
How do you install this? The install is .file!!
11Nick
wrote on 26 August 2007 at 23:14
Okay I tried uploading the things but I kept getting stupid conf errors! HELP!
12lordelph
wrote on 27 August 2007 at 20:35
Pastebin is unsupported, but if you provide more info I’ll help if I can.
13John
wrote on 26 October 2007 at 16:07
Do you know of any free hosts that support pastebin?