From Lousy Guinea Pig, 9 Years ago, written in Plain Text.
Embed
  1. ![Hook](http://a.fsdn.com/allura/p/php-pastebin/icon) Php-pastebin V3
  2. =============
  3.  
  4. * * *
  5.  
  6. *   [What is Php-pastebin?](#what-is-php-pastebin "What is Php-pastebin?")
  7. *   [How to install php-pastebin?](#how-to-install-php-pastebin "How to install php-pastebin?")
  8. *   [How to upgrade v2 to v3?](#how-to-upgrade-v2-to-v3 "How to upgrade v2 to v3?")
  9. *   [Demonstration](#demonstration "Demonstration")
  10. *   [Thanks](#thanks "Thanks")
  11.  
  12.  
  13. ### What is Php-pastebin? ###
  14.  
  15. > Pastebin is here to help you collaborate on debugging code snippets.  
  16. > If you're not familiar with the idea, most people use it like this:  
  17.  
  18. *   Submit a code fragment to Php-pastebin,  
  19. *   Getting a url like http://demo.php-pastebin.com/4lqbxycs,
  20. *   paste the url into an IRC or IM conversation, someone responds by reading and perhaps submitting a modification of your code, you then view the modification, maybe using the built in diff tool to help locate the changes
  21.  
  22. ### How to install php-pastebin? ###
  23.  
  24. To install php-pastebin, you do not need much!  
  25.  
  26. 1.  Web server  
  27. 2.  Mysql database  
  28. 3.  mod_rewrite enabled on your apache web server (see it in your phpinfo())  
  29.  
  30. To begin, send your file on ftp and open your browser to the selected domain name, you should see the installation page.  
  31. Follow the installation instructions.
  32.  
  33. Once the installation is complete, you must delete the install.php file, libs/db.sql and put a chmod 644 on the file libs/db.php
  34.  
  35. ### How to upgrade v2 to v3? ###
  36.  
  37. To update your version of php-pastebin, you must:  
  38.  
  39.    1.  Delete old version
  40.     * Keep preciously files *libs/db.php* (which contains your login sql)
  41.     * Delete all files of your FTP
  42.    2.  Upload New version
  43.     * Upload the v3 of php-pastebin on your FTP
  44.     * Replace db.php with your
  45.    3.  Download [upgrade.php](http://wiki.php-pastebin.com/_media/upgrade.php "upgrade.php") and add it at root of your script  
  46.     * Go on your navigator and open upgrade.php
  47.     * Click on "Upgrade v2 to v3 now!"
  48.    4.  Remove upgrade.php and go on your website
  49.  
  50. ### Demonstration ###
  51.  
  52. [Demonstration](http://demo.php-pastebin.com/ "Demonstration")
  53.  
  54. ### Thanks ###
  55.  
  56. For safety tests, thanks to:
  57.  
  58. *   [@fr0gSecurity](https://twitter.com/fr0gSecurity "@fr0gSecurity")
  59. *   [kallimero](http://hwc-crew.org/ "kallimero")
  60. *   [@5ct34m](https://twitter.com/5ct34m "@5ct34m")
  61. *   [@BinarySecurity ](https://twitter.com/BinarySecurity "@BinarySecurity ")
  62.  
  63. For Debug, thanks to:
  64.  
  65. *   [@QuentinF_](https://twitter.com/QuentinF_ "@QuentinF_")
  66.