Top

PHP Code Snippets

  (168)  
Sort by 
Working with simpleXML. 2 functions for looping through XML-files. formatSortGallery: deletes empty attributes and sort the others addPrice: adds single attribute to each XML
Tags: add  loop  php5  simplexml  sort 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: PHP    Posted by pZypher on Nov 04, 2009
its a pretty basic parser but its my first go at PHP :)
Tags: parser  php  runescape  stats 
+ 0 likes
2 comment(s)    Score: 0.0    Platform: PHP    Posted by sunslayer on Oct 31, 2009
This is the English Anonymous Mailer Translated by Jovix :D
+ 0 likes
8 comment(s)    Score: 1.0    Platform: PHP    Posted by Shinybot on Oct 25, 2009
This is a Anonymous Mailer Its only Dutch but i go Translate it.
Tags: shiny 
+ 0 likes
1 comment(s)    Score: 0.0    Platform: PHP    Posted by Shinybot on Oct 17, 2009
this can be transformed to do whatever you need, I just made it to mess around
Tags: black  fading  php  text  white 
+ 0 likes
2 comment(s)    Score: 0.0    Platform: PHP    Posted by Korvin on Aug 18, 2009
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:..
Tags: php  script 
+ 0 likes
4 comment(s)    Score: 0.0    Platform: PHP    Posted by AlexHopper on Aug 16, 2009
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
Tags: image  php  random 
+ 0 likes
1 comment(s)    Score: 0.0    Platform: PHP    Posted by Korvin on Aug 13, 2009
This script uses the PHP IRC framework found here: http://www.hawkee.com/snippet/5658/ This is a simple PHP script that will connect to an IRC server and channel, and will allow users to "roll"..
Tags: fun  game  hill  irc  king  of  php  script  the 
+ 0 likes
1 comment(s)    Score: 0.0    Platform: PHP    Posted by Gforce20 on May 28, 2009
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..
Tags: combo  dynamic  mirc  php  script  sig  signature 
+ 0 likes
5 comment(s)    Score: 0.0    Platform: PHP    Posted by hy71194 on May 14, 2009
Rapidshare link checker Example: http://kuzmanov.ws.mk/linkchecker.php
Tags: checker  link  rapidshare 
+ 4 likes
7 comment(s)    Score: 5.0    Platform: PHP    Posted by A^1^T^E^A^M on May 04, 2009
Screenshot
Tags: address  computer  firefox  ip  my  whats 
+ 1 likes
4 comment(s)    Score: 0.0    Platform: PHP    Posted by A^1^T^E^A^M on May 02, 2009
This is sample script how to check if some port are online or offline. This script maybe useful for Server Status Checker. How to use? simple. Just edit $ip = '127.0.0.1'; with your server..
Tags: checker  port  scanner  server  statu  status 
+ 0 likes
1 comment(s)    Score: 5.0    Platform: PHP    Posted by XShimeX on May 02, 2009
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..
Tags: bot  php  socket 
+ 4 likes
18 comment(s)    Score: 10.0    Platform: PHP    Posted by bone282 on Apr 30, 2009
My first PHP script! Woo! I think this is finally the right language I've been searching for, it looks so much like mIRC and I love it! You can see the script "in action" @ http://dark-purple.comuv.com/slots.php..
Tags: game  html  php  script  slots 
+ 0 likes
9 comment(s)    Score: 4.0    Platform: PHP    Posted by ^Neptune on Apr 26, 2009
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..
Tags: irc  php  trigger 
+ 0 likes
8 comment(s)    Score: 0.0    Platform: PHP    Posted by killwithme on Apr 18, 2009
(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..
+ 1 likes
3 comment(s)    Score: 7.0    Platform: PHP    Posted by bone282 on Apr 08, 2009
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..
Tags: trim  trim string  truncate 
+ 0 likes
1 comment(s)    Score: 5.0    Platform: PHP    Posted by bone282 on Mar 17, 2009
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'])..
Tags: php  tinyurl 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: PHP    Posted by bone282 on Mar 10, 2009
This function will return the duration of the given time period in days, hours, minutes and seconds. secstostr(1234567) would return "14 days, 6 hours, 56 minutes, 7 seconds"
Tags: duration  length  seconds  string  text  time 
+ 0 likes
2 comment(s)    Score: 0.0    Platform: PHP    Posted by Daveoh on Mar 04, 2009
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..
Tags: bot  calc  calculator  php 
+ 1 likes
4 comment(s)    Score: 6.0    Platform: PHP    Posted by bone282 on Mar 04, 2009
Just a simple way of generating a random string.
Tags: bot  password  php  random  username 
+ 0 likes
3 comment(s)    Score: 5.0    Platform: PHP    Posted by bone282 on Mar 04, 2009
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
3 comment(s)    Score: 5.0    Platform: PHP    Posted by bone282 on Mar 01, 2009
Connects to an IRC server you specify and idles. Basically this is a frame for an IRC bot.
Tags: bot  illuminati  irc  kingskrown  php 
+ 0 likes
1 comment(s)    Score: 0.0    Platform: PHP    Posted by kingskrown on Jan 24, 2009
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.
Tags: plural  remove  string 
+ 0 likes
7 comment(s)    Score: 0.0    Platform: PHP    Posted by Hawkee on Jan 21, 2009
This code allows you to display your MAIN site directory, it will also open the pages in the directory allowing you to edit and save your changes. This code is simply something i FIXED for a friend who..
Tags: php 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: PHP    Posted by LordHawk on Jan 16, 2009
1 2 3 4 5 6 7 Next
Bottom