Browse | Submit A New Snippet

Snippets by category: Networking

Snippet ID Title Creator
Snippets
14PhpWhoismayan
Very simple whois.

35remote_mailmcrbids
How to send mail if you don't have a mail server up on localhost?
233Dynamic Link Listwsjb78
Hello, this is one of my first scripts.

It lets you create an link list for your webpage based on categories. This one works on with PHP / MySQL. Currently, the categories are sorted by the time of creation... first one created => first one shown.

If you have any improvements, please mail me at webmaster@wsjb78.com />
Ok, the inc file configures the overall layout.
index.php is the main file
post.php is the form to add new entries
link.php is the form submission and includes the index.php file.
linklist.sql is the file containing the MySQL table parameters.
263POP3 Web based e-mailjholden
Create a web based POP3 (and IMAP) email system. If you want to provide something like Hotmail to your users, access your own POP mail via the web or offer a generic pop service to users then this class is for you.

Please note that the code is still a little buggy in decoding the return header string, but make of it what you want.
291Who's Been Herewebboy
This script displays IP infomation and possible geographical location (Thanks to Eric Shaffer) of the last visitor on your site to the current visitor of your site.

A cool and unique little script.
325POP3 class with secure APOP authenticationkidojo
This class allows you to maintain a POP3 connection, and authenticate through the secure APOP method or through the traditional plain text manner. Server error checking is handled more appropriatly than the POP3 functions in the standard php 'imap_' library.
326Send email messages through SMTP serverskidojo
This class will allow you to connect to remote SMTP servers and send email. It currently allows for one MIME encoded attachment.
327MIME decoding classkidojo
Takes a MIME encoded email message body and returns the attachments in a directly usable form. Handles base64 encoding, Quoted Printable and 7, 8 bit encoded messages.
391libident.phpjodrell
libident.php is an RFC 1413 compatible PHP4 Ident client class. The Identification Protocol (a.k.a., "ident", a.k.a., "the Ident Protocol") provides a means to determine the identity of a user of a particular TCP connection. Given a TCP port number pair, it returns a character string which identifies the owner of that connection on the server's system.
409Check if Domain is Registrationwadearnold
Checks a whois server to see if a domain has been registered. Returns boolean false the domain name is not taken.
422Simple telnet script classmarcennaji
Telnet script class. Written in french, but may be translatable :-). Tested, seems to work fine.
429Webmaster Replyhuwsy
See it working at 'www.huw.ukso.com'
email me at 'huwsy@jediknights.co.uk' />
Will allow any visitor to send an email to the specified email address, without allowing them to know the email address.
Based on php, no sql required.

There is 2 files required, they are all included in the 1 upload file.
1st. hml.inc (containing layout info)
2nd. webmaster.php (the core file, and exercutable file)
499Check Whoisesammons
Simple Whois availability script that includes check on .biz and .info names as well. Checks appropriate whois server depending on TLD.
504Send a 1-Way SMS Wireless Message with PHPbobwhite
Allows you to embed SMS wireless messaging to cell phones and pagers from PHP applications of all types. Uses the Simplewire network to reach mobile users in 118 countries.

The best way is to join the Simplewire Developer Program at http://devprogram.simplewire.com. Then download the SDK as listed. Then you will receive an email explaining what to do

527send mails from forms in HTML formatgordon9728
This script can be used to send mails from text entered in a form.. It is sent in HTML format.
546Basic Class for Yahoo! Chat / Messenger Interfacemathew
This is a basic class based peice of code I wrote to send myself an Yahoo! instant message whenever someone would come to my website.

Although it is not complete in itself, among other things, it could be used with the new PHP GTK+ to build a basic chat client.

For those who understand the packet definitions, and are interested in a bit of a challenge, here is a list of the rest of the packet definitions I have figured out:

LOGIN = 0;
LOGOUT = 1;
ROOMENTER = 2;
ROOMLEAVE = 3;
INVITE = 4;
AWAY = 5;
SPEECH = 6;
THINK = 7;
EMOTE = 8;
ADVERTISEMENT = 9;
PM = 10;
PING = 11;
BUDDY = 12;
YMAIL = 13;
YMESSAGE = 14;
GOTO = 15;
GRAFITI = 16;

{ 0x00, 0x00, 0x00, 0x01 },
{ 0x00, 0x00, 0x00, 0x02 },
{ 0x00, 0x00, 0x00, 0x11 },
{ 0x00, 0x00, 0x00, 0x12 },
{ 0x00, 0x00, 0x00, 0x17 },
{ 0x00, 0x00, 0x00, 0x21 },
{ 0x00, 0x00, 0x00, 0x41 },
{ 0x00, 0x00, 0x00, 0x42 },
{ 0x00, 0x00, 0x00, 0x43 },
{ 0x00, 0x00, 0x00, 0x44 },
{ 0x00, 0x00, 0x00, 0x45 },
{ 0x00, 0x00, 0x00, 0x62 },
{ 0x00, 0x00, 0x00, 0x68 },
{ 0x00, 0x00, 0x00, 0x69 },
{ 0x00, 0x00, 0x00, 0x70 },
{ 0x00, 0x00, 0x00, 0x71 },
{ 0x00, 0x00, 0x00, 0x80 }
1232BulletProof FTP Adminforsberg
@name: class BPFTPAdmin
@file: classBPFTPAdmin.php
@author: Niklas Forsberg
@email: niklas.forsberg@bildelstorget.se />
@description:
Class for administer a BulletProof FTP Server using PHP.
The class can for example be called from within a administration web page
in order to have a FTP administration on your own website so you can control
your FTP server from all over the world (a protected web page would ofcourse
be a preffered one!).

I use this class myself in a server administration page which I wrote, where
I also can administer things like mailserver, webserver, firewall etc.
This is one way to use it, but ofcourse there are a lot of other ways in which
it can be used.

Very well-documented! Easy to use for beginners aswell as pro's!
1321tinySendMaildsilvia
Often the mail functions of php cannot be used because they need access to sendmail or an equivalent binary and/or specific settings in php.ini on a given server and that access and/or configuration is not present. This code provides for sending mail in most all cases without any special requirements aside from being able to open a socket.
611Dig Itjay-php
html/php uses unix dig to get host information
634PHP_SSL_Brute - PHP BruteForce Hacking Script.dejchai
PHP_SSL_Brute - PHP BruteForce Hacking Script , This is an example to use php with cURL Lib,Cut and save into 3 files :-)
653Simple WHOIS Query (XHTML and PHP4.1.2 Complient)dannys
Displays information on .COM, .ORG, .NET and .EDU domains. Output is returned as XHTML and the script is compatable with PHP 4.1.2
1299Hits Tracking Systemklingo
This script records information about the visitors on a PHP page (last visit time, IP address, total visits...).
657Check Nodesjay-php
php page that runs a bash script to check for responses from a list of hosts/nodes

bash script included ;)
722SMB/WinPopup messagepackbart
Uses smbclient to send a message to selectable, predefined hosts running Samba or Windows.
Designed to be accessed by HTTP from an HTML form but can be modified easily for other purposes.
See http://frell.ambush.de/
1320XPerMailer - Sends TRUE Mailsexpertphp
XPertMailer is a php class that you can use to send encoded MIME type e-mail messages (text, HTML, HTML embeded images, attachments) towards a localhost, client, or relay SMTP servers with optional authorisation.
794PHP Port/Domain Scannerkodi_
PHP Domain Scanner..
you can download whole pack
(portcaner+java&pic) at
http://galeb.etf.bg.ac.yu/~blue_ice/ps.zip

here at PHPbuilder.com you have only domain scanner
blue_ice@galeb.etf.bg.ac.yu />
804Domain classmahype
This class checks the availability of a domain and gets the whois data. You can check domains of the following tld's:

* - ac
* - ac.jp
* - ac.uk
* - ad.jp
* - aero
* - ag
* - al
* - at
* - au
* - as
* - asn.au
* - be
* - bg
* - biz
* - br
* - ca
* - cc
* - ch
* - cl
* - cd
* - com
* - com.au
* - com.eg
* - com.mx
* - com.tw
* - conf.au
* - co.uk
* - csiro.au
* - cx
* - cz
* - de
* - dk
* - ee
* - edu
* - edu.au
* - eg
* - es
* - eun.eg
* - edu.id.au
* - fi
* - fo
* - fr
* - ge
* - gl
* - gr
* - gr.jp
* - gs
* - gob.mx
* - gov.au
* - hm
* - mc
* - mil
* - ms
* - mx
* - name
* - ne.jp
* - net
* - net.au
* - net.eg
* - net.lu
* - net.mx
* - net.uk
* - net.tw
* - nl
* - id.au
* - ie
* - info
* - info.au
* - it
* - idv.tw
* - jp
* - la
* - li
* - lk
* - lt
* - lu
* - ltd.uk
* - plc.uk
* - or.jp
* - org
* - org.au
* - org.lu
* - org.tw
* - org.uk
* - pl
* - pt
* - ru
* - th
* - to
* - tw
* - uk
* - wattle.id.au
858nanoScannermaciekpl
Very short and basic TCP port scanner. Not very well commented, but everything is self-explanatory.
914Simple email functioncossmin
Simple email function using sendmail.
915Server informationcossmin
The scripts connects to a given web server and retrieves information about it.
971HTML/PHP frontend for Nmaptestic
A useful and easy to use frontend for the popular network scanner NMAP. It saves you from having to type tedious command lines etc. requires NMAP (doh!)
1036NS lookuplazyboy
Check DNS records, enter a name of box and you will se thi IP. :-D
Version 1 is without ping sorry but next version will be better maybe :-D
10562-way SMS/EMS/Ringtone/Logo scriptsimmcomm
This script allows you to send SMS (also long SMS), EMS, RTTTL-Ringtones, Logos (GIF, JPG, PNG) with automatic image resizing, EMS Pictures with copy protection and autosave feature, Nokia Operator Logos, Nokia Multipart messages and so on. Pictures and Ringtones can be HEX-included or specified to be downloaded from a HTTP-source. You can setup the 2-way service within minutes on TrueSenses.com. Requires NO additional libraries programs or databases.
1287NICEPHOTOGs' PHP 4 MASSMAILERnicephotog
NICEPHOTOGs' PHP 4 FREEWARE MASSMAIL AND EMAIL ADDRESS SOLICITING SCRIPT SET
is a set of PHP scripts designed to obtain email addresses on request from within websites
and to send mass quantities of email (from the list of submitted addresses gained through time)
when promotional mailing is required by businesses or personal or non profit organisations
require. The script will fire around 100 email messages in 30seconds to 1 minute depending
server loading.100 email messages at a time is a sensible quantity per send to use in the
address file p/fire set.
The set of scripts and required associate files have been designed to be easily integrated
into any website using a server running PHP 4.
27704 Bytes zipped
http://www.nicephotog.net/About-Free-PHP-Massmailer.html
1272rsIMAPurbansoot
This class can use the PHP IMAP extension to retrieve e-mail messages from a mailbox stored in an IMAP server.

It can also compose and send new messages using other functions of the PHP IMAP extension.

Currently it allows attaching a file to a message to be sent with a given text body.
1460MSN SSO Authenticationadammw
This script contains functions to generate tickets and return values for Windows Live Messenger SSO Authentication. See in-script comments for more info.