PHP Code Snippets

May 22, 2013
I've recently been working on a new project that called for a fancy looking time and date system. To solve this issue I've wrote one. When used it outputs stuff such as: 30 seconds 2..
3 comment(s)  ·   ·  PHP Snippet
Apr 20, 2013
EVER FELT LIKE TALKING IN CAPS IN ONE CHANNEL ALONE!? Well load this script up and you can kick those out who think its cool to speak in lowercase! Keep your channel SHIFT KEY HAPPY! Change..
Jan 05, 2013
PITC Has teamed with Printscreen.it to produce a simple Screenshot uploading service for PITC! Load this script AFTER loading my previous screenshot script then use /ss and /paste to..
0 comment(s)  ·   ·  PHP Snippet
Nov 18, 2012
This simple screenshot script utilises both a development addition to PITC and the PHP GD Image Extension. Install the PHP GD Image Extension known as "php5-gd" then load this..
1 comment(s)  ·   ·  PHP Snippet
Nov 14, 2012
Just another slogan script. now for PITC. > hawkee, so what!
1 comment(s)  ·   ·  PHP Snippet
Nov 13, 2012
PITC timer. Requires version 1.0. Based upon http://www.hawkee.com/snippet/9707/
2 comment(s)  ·   ·  PHP Snippet
Nov 13, 2012
$ini and $readini functions for PHP Usage: ini("file",N) Returns the name/Nth position of the specified topic/item in an ini/text file. The item/N parameter is optional...
Nov 12, 2012
This is a very easy uptime function for PITC. <Aha2Y> !uptime <php-droid> Running for 13m 10s
5 comment(s)  ·   ·  PHP Snippet
Nov 12, 2012
This script is similar to the IRC Bot in the Anope Support channel except this script returns the actual Module URL unlike the Anope Modbot. This script works on PITC v1.0 and above. Usage:..
1 comment(s)  ·   ·  PHP Snippet
Nov 05, 2012
This is a timer to be build into a bot. Example usage: timer_add('function',1,30,"showfunction();"); This creates the timer named 'function' which executes 'showfunction' function..
Nov 04, 2012
This will run nl2br on everything inside a string except for what is between the opening and closing tags. For example you can add <br>'s to a comment that contains
Sep 25, 2012
This is a simple script for PITC v1.0 that adds /slap to PITC when loaded. This script demonstrates interacting with the currently active window and adding a command to do a simple..
0 comment(s)  ·   ·  PHP Snippet
Sep 25, 2012
This code is a basic simplistic script designed for 1.0+ versions of the new and unique PITC IRC Client written in pure PHP. It has a fantastic API. Try it out yourselves. Has some humor..
Sep 17, 2012
This script adds /log to PITC when loaded. With it you can save the scrollback of any open window to file It will be named #channel.log in the 'logs' directory. This script will NOT..
Aug 16, 2012
I have struggled with creating calendars in PHP and HTML several times so far. There are different approaches, but I believe the class below is one of the best possible in terms of code..
3 comment(s)  ·   ·  PHP Snippet
Jul 27, 2012
This is a command line script that interfaces with Minecraft via rcon. It gives all the players on your server a chance to win a random item by typing "join". Here are the different..
Jul 13, 2012
Grabs & formats a new version of tvrage's myrss.php file daily, from here it'd be easy to insert items to mysql ... Mobbed @ 08:00 pm ( 2012-07-14 ) [ S01E07 ] You're Fired http://www.tvrage.com/Mobbed My..
Jun 27, 2012
Capture Web Screenshots easily with the GrabzIt PHP API. You will need the free GrabzIt PHP Code Library to get started. For more information on the API visit. http://grabz.it/api/php/ Register..
Jun 23, 2012
Useful for example in PHP bots
4 comment(s)  ·   ·  PHP Snippet
May 15, 2012
This is an easy to maintain method for creating clean urls without any file extensions. It's very good for hiding your underlying programming language and offers a more user friendly experience...
May 12, 2012
Ever wonder how many posts were made over the past few days or months? This is a very simple data visualization tool that shows you exactly how many. To set it up you need to add your..
0 comment(s)  ·   ·  PHP Snippet
May 04, 2012
This script give your Google Voice a SIP Number (as well as a Skype number), which people can call without calling through real telephones. It also allows you to add phone number aliases..
1 comment(s)  ·   ·  PHP Snippet
May 04, 2012
This script lets you forward to any SIP (or regular) number using a US number that you choose as a forwarding phone. I also added the ability to record outgoing calls, and automatic GV number..
Mar 02, 2012
This will take the date and time posted of an object in mySQL and convert it to a human readable form through PHP. It has 3 different modes of displaying the age: - The number of hours..
5 comment(s)  ·   ·  PHP Snippet
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. Next
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.