PHP Code Snippets
(169)
this function returns four parameters, the language its translating from, the language its translating to, the original text, and the translated text. separated by |
the rest is pretty much self-expl..
+ 0 likes
+ 0 likes
+ 0 likes
i am back and now im not making any more mirc scripts
i starting to make php codes
*******************
this well grab the Real Ip and proxy
- IP joined on - IP/Proxy: 75.24.71.80 - Host:..
+ 0 likes
Just change the directory to what you want, it's set to http://www.yoursite.com/images/ right now, so change to what you want.
Demo version: http://left4quake.com/test.php
+ 0 likes
Hi, this is my first release here, please comment what you like/dislike about it! :)
Ok, so this is a multi-PHP-mIRC script. Basically, the users in your IRC room will trigger the signature updater..
+ 0 likes
Rapidshare link checker
Example: http://kuzmanov.ws.mk/linkchecker.php
+ 4 likes
A bot i made for a friend who wanted to execute php strings with eval. I added a couple other functions aswell.
-------------
Commands:
.auth add <nick>
.auth del <nick>
.auth list
.join..
+ 4 likes
inspired by this one:
http://www.hawkee.com/snippet/5330/
i think it's obvious what it does
there are some bugs so dont expect it to work perfectly,
actions, status messages and notices are not..
+ 0 likes
(PHP 5)
I just upgraded my bot from 4.3.3 to 5.2.9-1 yesterday and thought id play around with it.
Weather Underground handles IATA/ICAO Airport codes, ZIP codes, aswell as typing city, state/country.
For..
Tags:
simplexml
simplexml load file
+ 1 likes
This function will trim a string and leave the last word completely intact
Result:
This function will trim a string and leave the last word...
This function will trim a string and leave the last...
Global..
+ 0 likes
An extremely easy, and sometimes handy (especially with room bots
spamming large quantities of links in one go).
You might call it with something like this ($matches1['1'] = the url/s.)
if (strlen($matches1['1'])..
+ 0 likes
This just uses googles own calculator..
heres what the output looks like
[12:49][RandomUser] !calc 23*4/56^2/456+8999
[12:49][PHP_Bot] (((23 * 4) / (56^2)) / 456) + 8999 = 8999.00006
full instructions..
+ 1 likes
Scraping the classic fact generators. And a simple but effective use of array_rand.
Call 'do_RandomFacts' by either of the following:
do_RandomFacts("chuck");
do_RandomFacts("mrt..
+ 0 likes
Connects to an IRC server you specify and idles. Basically this is a frame for an IRC bot.
+ 0 likes
This is a very short and simple snippet that will take a given string, $string, and if it is plural the 's' will be removed from the $string.
+ 0 likes


