Zend - The PHP Company




Miscellaneous

Add Code


. Add "Go Back" Frame to external links  

Type: application
Added by: fletcher
Entered: 11/03/2001
Last modified: 03/12/2000
Rating: **** (5 votes)
Views: 9833
Don't lose your website visitors when they link out of your website!! A short frame with "Back To My Site" and "Remove Frame" will be added to the top of any external URL link.


2-way SMS/EMS/Ringtone/Logo script  

Type: application
Added by: simmcomm
Entered: 23/06/2003
Last modified: 09/12/2002
Rating: ***** (3 votes)
Views: 13535
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.


5 star rating system  

Type: application
Added by: habitat675
Entered: 23/07/2003
Last modified: 09/12/2002
Rating: *** (6 votes)
Views: 8929
Allows guests to rate something 1 to 5 stars, then takes the results and returns a number of stars based on the average rating. If you try the script and get an error regarding the file 'ratings.php', try downloading the zipped file at http://habitat675.port5.com/rate/ratings.zip and chmod ratings.php 666. File also includes star images which you are free to use if you like, or you can use your own.


A better auto prepend/append  

Type: code fragment
Added by: mbroome
Entered: 02/03/2000
Last modified: 08/12/1999
Rating: **** (14 votes)
Views: 14639
A clean way to add a header and/or footer to pages automatically.


A Better Full, Independent Whois.  

Type: class
Added by: mallan2
Entered: 13/07/2001
Last modified: 07/12/2000
Rating: - (fewer than 3 votes)
Views: 8001
Works by fetching the whois server from whois.crsnic.net if com,net,org,edu address, sets the whois server it to countrycode.whois-servers.net for au,uk,etc. and sets the whois server to whois.arin.net for ips. Then it queries the aproprite whois server.


A Better WhoIs  

Type: code fragment
Added by: quonsar
Entered: 02/03/2000
Last modified: 08/12/1999
Rating: *** (3 votes)
Views: 9873
Works with the new registry system. Fetches whois server for the domain then queries that server for the registration data.


Add "Go Back" Frame to external links  

Type: application
Added by: m_ohse1
Entered: 23/05/2006
Last modified: 05/12/2005
Rating: - (fewer than 3 votes)
Views: 5090
Add "Go Back" Frame to external links


Addslashes  

Type: application
Added by: artmed
Entered: 12/01/2002
Last modified: 01/12/2001
Rating: - (fewer than 3 votes)
Views: 4783
Tired of tiping backslashes into the HTML-Code inside of PHP-code? Just drag and drop it into the Textbox and click. Ready.


Alternator Class  

Type: class
Added by: Kaoslord
Entered: 08/04/2000
Last modified: 08/12/1999
Rating: **** (5 votes)
Views: 5939
This is a simple class that just alternates between values given to it, good for tables which alternating cell backgrounds.


Another Version Of A Variable Dump Routine  

Type: code fragment
Added by: JWoolbright
Entered: 09/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 4971
use print_array($variable) to dump the contents of a variable of any type including objects or arrays into any easy to read html format.. It supports recursive object and arrays


Append a string to a log  

Type: code fragment
Added by: sync1
Entered: 29/07/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 6169
Function that appends a string to a specified log file.


Assign Variables from Array  

Type: code fragment
Added by: liquidkernel
Entered: 08/05/2002
Last modified: 05/12/2001
Rating: - (fewer than 3 votes)
Views: 4566
This is a function I wrote that runs through a single dimensional array and assigns variables based on the key names.


Assign Variables from Array (an other)  

Type: application
Added by: chimondo1
Entered: 09/08/2002
Last modified: 08/12/2001
Rating: - (fewer than 3 votes)
Views: 3892
Takes an array and assigns it to the global space.


Auto prepend append in php4  

Type: code fragment
Added by: fuelman
Entered: 14/06/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 6016
header and footer in php4


Bandwidth Tester  

Type: application
Added by: MrExpert2001
Entered: 23/08/2001
Last modified: 01/11/2000
Rating: - (fewer than 3 votes)
Views: 12988
Tests bandwidth with a random string. The size of the random string can be altered. Warning: when the script is set up to generate a large amount of data, your server may crash.


BBCode Validation  

Type: code fragment
Added by: akmalxxx
Entered: 18/10/2006
Last modified: 02/11/2005
Rating: - (fewer than 3 votes)
Views: 2127
Simple bbcode validating function


BeanUtils  

Type: class
Added by: knappes
Entered: 31/03/2005
Last modified: 04/12/2004
Rating: - (fewer than 3 votes)
Views: 4420
Utility Class with some useful functions to populate and retrieve values of JavaBean-like objects. Inspired be Jakarta Commons BeanUtils (http://jakarta.apache.org)


Best Before check on links  

Type: code fragment
Added by: Tiberg
Entered: 25/08/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 5052
A function that check best before dates on links to local files. Add new's flash or mark the link red on new files. Send a mail to the creator if the file are old. Check updates on your webcam and display a messgage if you are out of office.


Best Before check on links  

Type: code fragment
Added by: Tiberg
Entered: 29/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 4911
A function that check best before dates on links to local files. Add new's flash or mark the link red on new files. Send a mail to the creator if the file are old. Check updates on your webcam and display a messgage if you are out of office.


BigBrother news-script  

Type: application
Added by: JokerPs
Entered: 28/03/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 7085
A News-Frontend for the news-section of the german TV reality show "BigBrother". At this time the script is only in german. if someone from outside of germany is interested in an english version, please contact me!!


Bit manipulation  

Type: code fragment
Added by: maniac
Entered: 27/03/2000
Last modified: 08/12/1999
Rating: **** (9 votes)
Views: 9057
If you need to keep track of a lot of on/off toggles, like user settings etc. There is only one easy way to store and manipulate these values: Bitfields. With these functions manipulating bitfields becomes easy. Everything you need is included below.


Bit Manipulation Class  

Type: class
Added by: GabeBauman
Entered: 29/03/2000
Last modified: 08/12/1999
Rating: **** (5 votes)
Views: 6063
Maniac's bit manipulation routines, wrapped into a simple class object.

Newbies, think of this class as a kind of array of up to 32 true or false values, squished into a tiny amount of space.



bit_count  

Type: application
Added by: russlndr
Entered: 05/10/2001
Last modified: 31/10/2000
Rating: - (fewer than 3 votes)
Views: 4527
This function will count number of bit who are set to 1 in a integer.


Blogsoft  

Type: application
Added by: korndragon
Entered: 04/06/2002
Last modified: 06/12/2001
Rating: - (fewer than 3 votes)
Views: 5111
Blogsoft is a free blog script that allows you to retrieve your web-log from any web page on the Web with 1 line of javascript.


Boolean Keyword Interpreter  

Type: application
Added by: lcoates
Entered: 03/04/2000
Last modified: 08/12/1999
Rating: **** (9 votes)
Views: 8980
This code takes in a string of keywords and evaluates the string, turning it into three collections of strings based on the boolean operators in the string. Please send comments on how I can improve the code. I'd love to get some feedback.


Cacher - Easy and efficient variable cache system  

Type: class
Added by: liquidkernel
Entered: 14/09/2002
Last modified: 09/12/2001
Rating: - (fewer than 3 votes)
Views: 5067
Cacher allows you to cache variables (anything that can be put into a variable) for later use. This speeds up loading time, and reduces load on the data source.


caesar shift  

Type: code fragment
Added by: robF
Entered: 03/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 5504
Totally useless script to caesar shift a given message.


classKurs  

Type: application
Added by: hermawan
Entered: 11/11/2002
Last modified: 01/11/2001
Rating: - (fewer than 3 votes)
Views: 4989
classKurs is a PHP class that lets you grab Bank Indonesia's content of kurs, then put the content on a single file. The grabber can be set as cron job. There is also the function to show the grabbed file in formated html tags, ready to go.


CodeRed Counter  

Type: code fragment
Added by: Peppe316
Entered: 12/08/2001
Last modified: 08/12/2000
Rating: - (fewer than 3 votes)
Views: 5408
Show everyone how many times you've been hit by the CodeRed Virus


Content*Builder  

Type: application
Added by: sascha_cb
Entered: 07/05/2002
Last modified: 05/12/2001
Rating: - (fewer than 3 votes)
Views: 5951
ContentBuilder is a powerfull news- and article-management system for smaller sites. We call it pluggable CMS, because its possible to add own Modules without changing the running system. The system uses PHP and MySQL for data-processing. It allows you to easily add, delete and modify articles, users and headlines. It features multi-user access levels and multiple file upload. All settings can easily be configured via a web interface.


coppa_check  

Type: code fragment
Added by: c0dem0nkey
Entered: 31/10/2001
Last modified: 01/11/2000
Rating: - (fewer than 3 votes)
Views: 3938
This is a down and dirty COPPA age verifier. This function takes 3 args. A birthday, a birthmonth and a birthyear and returns the users actual age if it's good and false if it's non-compliant. Throw this into a general include file and slap it in your library and you won't have to worry if you're letting any kids in. This is an important issue since it's illegal to gather user data if the person is under 13 years old.


Counterstrike  

Type: class
Added by: schack
Entered: 21/03/2001
Last modified: 03/12/2000
Rating: ***** (3 votes)
Views: 12868
A class for doing serverstatus-queries against Halflife/Counterstrike servers


Country Array  

Type: code fragment
Added by: ralexander
Entered: 01/03/2001
Last modified: 03/12/2000
Rating: - (fewer than 3 votes)
Views: 11648
I snagged the US State array posted here, but I needed countries as well. I snagged it as a CSV list at http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1/db_en.html and wrote a little function to print out the list in array format ;-]


Cynic  

Type: code fragment
Added by: cynicz
Entered: 27/03/2001
Last modified: 04/12/2000
Rating: - (fewer than 3 votes)
Views: 4112
$argv handling function


data verification functions  

Type: code fragment
Added by: robF
Entered: 16/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6724
a few simple functions to check the validity of internet hostnames, IP addresses etc.


Database session storage with locking  

Type: code fragment
Added by: erwinmoller
Entered: 31/10/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 3254
If you have been looking for a databasesolution using locking of the session for the duration of the script, and couldn't find any, here is one.


denic.class.php  

Type: class
Added by: Toolpi
Entered: 12/03/2002
Last modified: 03/12/2001
Rating: - (fewer than 3 votes)
Views: 4439
a simple class to check domain's with whois. it gives 0 or 1 return. ok, it is one of thousend ;-)


dhs.org DNS Updater  

Type: code fragment
Added by: rev0
Entered: 30/05/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 5580
Use this code to connect to the dhs servers and update your ip address and other information (useful with another standalone script running from cron to check for a change in ip over roadrunner or dsl)


DOCSIS class  

Type: class library
Added by: MooMan
Entered: 20/10/2001
Last modified: 01/11/2000
Rating: - (fewer than 3 votes)
Views: 5229
Provides a mechanism to generate binary compatible DOCSIS 1.0 through an easy to use PHP class


Domain checker  

Type: code fragment
Added by: stiawan
Entered: 02/05/2002
Last modified: 05/12/2001
Rating: - (fewer than 3 votes)
Views: 5101
Function to check is a domain available or not?


Domain checker.  

Type: code fragment
Added by: stiawan
Entered: 30/04/2002
Last modified: 05/12/2001
Rating: - (fewer than 3 votes)
Views: 4541
Simple domain check using host -t command.


Domain Name Checker & Suggester  

Type: class
Added by: remobiagioni
Entered: 19/02/2005
Last modified: 02/12/2004
Rating: - (fewer than 3 votes)
Views: 4679
Checks to see if a domain name exists and suggest alternatives based on alternative tlds. Uses host command to find the domain


dumper +object dump  

Type: code fragment
Added by: SHARYANTO
Entered: 12/07/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 5833
A patched version of Jan Fredrik Leversund's dumper. Dumper, like Perl's Data::Dumper, provides a string representation of a data structure. The string can be eval'ed to recreate the data structure. This version will nicely list object properties instead of just displaying the serialized bytedumps.


dumpr  

Type: code fragment
Added by: razormotion
Entered: 29/03/2005
Last modified: 03/12/2004
Rating: - (fewer than 3 votes)
Views: 3737
Dump any resource with syntax highlighting, indenting and variable type information


Enhanced error logging  

Type: code fragment
Added by: ddamian
Entered: 04/09/2002
Last modified: 09/12/2001
Rating: **** (3 votes)
Views: 4322
The most interesting feature is probably displaying the highlighted source code that triggered the errors. It also allows logging errors to syslog and dumping context on fatal errors.


External Frame  

Type: code fragment
Added by: goliche
Entered: 04/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 5382
Whit this lines of code, you can link to external servers whit a frame of your site...


External Links Tester Utility  

Type: application
Added by: jay_chack
Entered: 02/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 4983
Whether your external links are in a mysql database or a flat file or on the html page, this utility checks to see if their hosts are in service.


find files  

Type: code fragment
Added by: robf
Entered: 28/05/2001
Last modified: 06/12/2000
Rating: - (fewer than 3 votes)
Views: 5644
Returns an array of files under a given directory whose names match a given pattern.


freshmeat.net latest news grabbing tools  

Type: application
Added by: simbolon
Entered: 10/04/2001
Last modified: 04/12/2000
Rating: - (fewer than 3 votes)
Views: 5595
grab latest news at freshmeat.net, and attach to your web page.


func_alias  

Type: code fragment
Added by: pnoq
Entered: 07/06/2002
Last modified: 06/12/2001
Rating: - (fewer than 3 votes)
Views: 3680
This function allows you to create an alias for a function. For example if you do not like the function name 'substr', create your own alias named 'mid' (perhaps you know this function name from BASIC). It does not work with function which use references.


FuzzSearch  

Type: application
Added by: mukul
Entered: 02/05/2000
Last modified: 08/12/1999
Rating: ** (9 votes)
Views: 12282
A speedy search engine using eXtreme fuzzy methodoloy. Using MySQL for storage of data, it searches the table for either exact or fuzzy matches.


get(var)  

Type: code fragment
Added by: 7aint3d
Entered: 29/04/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 2511
Get the value of a string or array If an array is passed, then it is split into two components: the array name and its keys. If you pass array('array','one','two','three'), then the resulting variable name would be $array['one']['two']['three']. This can be up to an infinite depth. This is especially useful in Objects. It was specifically designed for that purpose.


GetKeywords  

Type: code fragment
Added by: otavio
Entered: 13/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 4888
Function to get meta keywords of any page and output an array.


getMquest ~ Map Quest Link Generator  

Type: code fragment
Added by: tommyo
Entered: 08/08/2001
Last modified: 09/12/2003
Rating: - (fewer than 3 votes)
Views: 5901
This is a simple function that creates a link to a mapquest link. The function accepts the a street, city, state, zip and optionally a string for the link. If the link string is not set it uses the address for the link string.


GetQueryVars  

Type: code fragment
Added by: otavio
Entered: 13/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 4458
Function to get all variables sended on any query and output this an array.


Google search string logger  

Type: application
Added by: RobF
Entered: 14/04/2002
Last modified: 04/12/2001
Rating: - (fewer than 3 votes)
Views: 10255
Records the query strings people used to find your site through Google.


Grabber 1.0  

Type: application
Added by: Agux
Entered: 26/07/2000
Last modified: 08/12/1999
Rating: ** (8 votes)
Views: 10990
Wow! Now you can Grab from a web page any information and put it automatically in your home page. Cool for weather, news and more...


Helper function for debugging scripts  

Type: code fragment
Added by: lecuanda
Entered: 19/07/2001
Last modified: 07/12/2000
Rating: - (fewer than 3 votes)
Views: 4509
This little function will help you debug scripts, specially if you use a lot of objects and arrays. it prints a beautified version of the 'print_r' output.

if you add this function to your script, just call your script adding ?debug=1 (script.php?debug=1)or add the $debug global variable set to true to see the debugging output


Hidden IP Address Unhider  

Type: code fragment
Added by: socketseven
Entered: 01/09/2000
Last modified: 01/12/2000
Rating: ** (12 votes)
Views: 10552
This guy will reveal the true IP Address behind the cleverly hidden ones you normally get in spam email


HTML validation  

Type: code fragment
Added by: akmalxxx
Entered: 18/10/2006
Last modified: 02/11/2005
Rating: - (fewer than 3 votes)
Views: 1824
simple html validating function


ICQ Status Query Function  

Type: code fragment
Added by: sdx
Entered: 24/06/2003
Last modified: 08/12/2003
Rating: - (fewer than 3 votes)
Views: 4106
this function returns the status of a given icq number (online,offline,disabled). after endless looking for an icq status checker in php and discovering some none-working, i found out the easy way icq handles the status images and wrote a small function to parse their reply stuff to a status image query.


ImageThumb  

Type: application
Added by: olivo
Entered: 06/02/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 3777
ImageThumb is a small piece of software written in the PHP language that lets you create thumbnails on the fly for a given image, whether it is local ore remote. Currently supported formats are GIF, PNG and JPEG. Now supports thumbnail caching. To use this script, you must have the GD library installed, and obiously a webserver capable of running PHP scripts (PHP >= 4.0.4)


inet_ntop  

Type: code fragment
Added by: magicaltux
Entered: 27/05/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 2331
Converts a binary IP to human-readable representation. This is a compatibility implementation of the original inet_ntop function at : http://www.php.net/inet_ntop


Inheritance visualisation  

Type: class library
Added by: cuiztra
Entered: 27/05/2004
Last modified: 06/12/2003
Rating: - (fewer than 3 votes)
Views: 3466
Simple tool to help start documentation of object tree. It shows the inheritance diagram for all declared classes, and shows interface for the classes. Can be used dynamicaly (cached), or it can generate static html documents. In class representation inherited properties and methods are grey. It can be configured to display all declared classes, or only user defined classes, or user defined classes with necessary built in classes due to it's inheritance.


Inline Scope Control  

Type: class
Added by: zak
Entered: 19/06/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 4988
The inline class provides methods for creating and destroying local variable scopes. Simply put, local scopes are spaces where some or all of the global variables are temporarily hidden.

This behavior is useful when debugging, or for making emergency hacks to code.

Methods include:

    inline() (class constructor) - create a local scope for one or more variables.

    get_global() - find the value of a hidden global variable.

    get_globals() - find the values of all the hidden global variables.

    export() - export a local variable to global scope.

    export_all() - export all local variables to global scope.

    exit_scope() - exit the local scope and destroy the class variables



Interface to poppassd  

Type: class
Added by: jcostom
Entered: 03/03/2000
Last modified: 05/12/2000
Rating: ***** (6 votes)
Views: 6550
This class provides an interface to poppassd, a commonly used daemon to enable password changes via the network, particularly using the Eudora mail client. Take care to ensure the safety of your password data in transit! I recommend using this script only over SSL.


IP Hider Obscure Any URL  

Type: code fragment
Added by: idban
Entered: 17/06/2000
Last modified: 07/12/2001
Rating: **** (16 votes)
Views: 54045
IP hider, Obscure Any URL Anonymity, connection lores, obfuscation, corporate survival base on http://www.searchlores.org/obscure.htm


just another php coder :)  

Type: code fragment
Added by: idban
Entered: 30/05/2001
Last modified: 06/12/2000
Rating: - (fewer than 3 votes)
Views: 6846
remember JAPH? Just Another Perl Hacker, ( http://www.cpan.org/misc/japh ) lets start with JAPC, Just Another Php Coder :)
just cut and paste code this code and use as signature :)


langard  

Type: code fragment
Added by: langard
Entered: 16/07/2001
Last modified: 07/12/2000
Rating: - (fewer than 3 votes)
Views: 5224
CUSTOM 404 - HTM TO PHP SCRIPT This custom .404 script performs some valuable, practical functions: 1). For Web developers who are transitioning large, static HTML sites to much more powerful PHP versions it allows you to replace pages gradually and TRANSPARENTLY without sacrificing your internal or external link integrity. All links to your pages can remain the same (i.e. .htm, .html, etc) even AFTER you replace them with same-name .php versions. What this does is prevent you from losing any position in the search engines and also keeps all your internal and incoming links from other sites operating and active. 2). You don't have to use the (Apache) Mod_Rewrite module, Force_Type directives or even have access to your .conf file in order to use it. This is especially useful for those running several virtual domains on the same server and need separate rules for each. 3). When your new PHP pages are in place, you can still submit them for re-indexing with the search engines and directories using the (more friendly and common) .htm extensions. 4). By leaving this .404 script in place, you can simply add different header locations or file includes ($page.php) to it later that redirect to, say, your database scripts or other PHP pages that perform different functions. In this way you can create literally thousands of (what appear to be) normal, static .html pages which (actually) do not exist, but are php-created on the fly.


libCache  

Type: class library
Added by: jbardin
Entered: 26/09/2002
Last modified: 09/12/2001
Rating: - (fewer than 3 votes)
Views: 3402
Generalized caching library, usefull for caching of variables through the use of serialize or any type of file you wish to have cached.


LinkMgr  

Type: class
Added by: Ritter_Runkel
Entered: 03/06/2001
Last modified: 06/12/2000
Rating: - (fewer than 3 votes)
Views: 4828
Useful class to transfer variables through an url.


Load Timer  

Type: application
Added by: jlemmons
Entered: 11/08/2002
Last modified: 08/12/2001
Rating: - (fewer than 3 votes)
Views: 4381
This code times the build and download of web pages without the need for PERL or JavaScript and has minimal code in this demo, but can be built into a full tilt tracking system.


Lookup Country by IP Address  

Type: code fragment
Added by: tgotchi
Entered: 21/10/2002
Last modified: 31/10/2001
Rating: - (fewer than 3 votes)
Views: 9950
This PHP script shows how to lookup country origin by using visitor's IP address. This example required an external ACCESS database for lookup purpose. Full database is available at http://www.location.com.my. Developers use this script for projects related to: 1. Display native language and currency 2. Redirect based on country 3. Digital rights management 4. Prevent password sharing and abuse of service 5. Reduce credit card fraud 6. Web log stats and analysis 7. Auto-selection of country on forms 8. Filter access from countries you do not do business with 9. Geo-targeting for increased sales and click-thrus 10. And much, much more!


Making phone calls using Voicent Gateway  

Type: class
Added by: voicent
Entered: 26/12/2004
Last modified: 01/12/2004
Rating: - (fewer than 3 votes)
Views: 3926
This is the PHP interface module for Voicent Gateway, a VoiceXML gateway for your PC. You can use this interface module to make telephone calls from your perl program, provided that the Voicent Gateway is installed and can be accessed through HTTP. There is a FREE version of Voicent Gateway program downloadable from: http://www.voicent.com/download


MCSerch  

Type: application
Added by: gad106
Entered: 06/02/2002
Last modified: 02/12/2001
Rating: - (fewer than 3 votes)
Views: 4019
Searches through directories of text based files for a string. Configurable parameters are: extensions to search through, and directories to search through. I use it to search through my code library.


Meta Search 1.0  

Type: application
Added by: lysander
Entered: 15/10/2002
Last modified: 31/10/2001
Rating: - (fewer than 3 votes)
Views: 4951
MetaSearch is a variation of SiteSearch 1.2 which only searches Meta keyword tags instead of all the text on the page.


Meunity Community System  

Type: application
Added by: zackcoburn
Entered: 28/09/2002
Last modified: 09/12/2001
Rating: - (fewer than 3 votes)
Views: 3671
Meunity is a Web-based community system that uses PHP. It is object oriented, so it is easily extendible. Its database abstraction layer allows it to be compatible with multiple databases. It is easily configurable, and includes content management systems and advanced administration.


MP3 class  

Type: class
Added by: ludoo
Entered: 28/05/2000
Last modified: 03/12/2000
Rating: **** (5 votes)
Views: 30501
retrieve mp3 files info (bitrate, duration, layer, etc) and id3v1 tags (artist,title, etc.), send file playlist, stream file with icecast headers url a few methods are broken, and need to be completed (I have no time for this). File info and properties reading works ok. url is http://www.sumatrasolutions.com/


Nested modules/requires  

Type: code fragment
Added by: opido
Entered: 10/03/2000
Last modified: 08/12/1999
Rating: *** (5 votes)
Views: 5349
You can nest require('page.php') based on variables, this can lead some very dynamic application/modules that can all run from a single interface...


NSLookup  

Type: application
Added by: nakayama
Entered: 03/03/2000
Last modified: 09/12/2004
Rating: ** (3 votes)
Views: 6129
Consulta de dominios, hosts, mx, en servidores DNS. DNS query.


online connected checker  

Type: code fragment
Added by: fabricet
Entered: 31/07/2000
Last modified: 08/12/1999
Rating: **** (3 votes)
Views: 9437
Trick to print how many surfers are connected to a page.


OPML PHP Class  

Type: application
Added by: amars
Entered: 06/04/2003
Last modified: 04/12/2002
Rating: - (fewer than 3 votes)
Views: 5766
PHP class for use with OPML (Outline Processor Markup Language) files. OPML is a XML-based file format for outline-structured information. More info at http://www.opml.org


PDF Info!  

Type: code fragment
Added by: wbscotta
Entered: 17/03/2000
Last modified: 08/12/1999
Rating: **** (4 votes)
Views: 6577
Have you every tried to get the title or subject of a pdf, only to find that it moved on you? Here's the code that can help you out.


pdfTag  

Type: class
Added by: rkaldung
Entered: 06/08/2003
Last modified: 09/12/2002
Rating: - (fewer than 3 votes)
Views: 3962
This class helps you to create pdf documents from xml sources.


phat ... an interface to at  

Type: class
Added by: cviebrock
Entered: 23/10/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 4760
phat is a class to make running the shell at commands (at, atq, atrm) easier from within PHP.


phod: PHP Open Directory  

Type: application
Added by: raja
Entered: 02/03/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 9239
Parse directory and search data from the Open Directory Project (dmoz.org) and format it to your site's look and feel.


Phoogle  

Type: application
Added by: Codewalkers
Entered: 15/04/2002
Last modified: 04/12/2001
Rating: - (fewer than 3 votes)
Views: 6896
Phoogle is the winner of the first ever PHP Coding Contest at http://codewalkers.com - it was coded by Jon Bardin. Phoogle does some manipulation of google and google groups search results. It is a wonderful example of using sockets.


php 2 matlab interface  

Type: code fragment
Added by: Tiberg
Entered: 25/06/2002
Last modified: 06/12/2001
Rating: - (fewer than 3 votes)
Views: 8438
4 code fragments to - set data in PHP and start matlab script - run matlab script - read data from matlab script and redirect to php page - display result in php


PHP controll of Matlab scripts.  

Type: code fragment
Added by: tiberg
Entered: 18/10/2002
Last modified: 31/10/2001
Rating: - (fewer than 3 votes)
Views: 4927
Code exapmles to pass variables from a PHP page to a matlab script and back.


PHP Simple Excel File Generator  

Type: class library
Added by: Erol_Ozcan
Entered: 18/05/2001
Last modified: 05/12/2000
Rating: ***** (16 votes)
Views: 30935
This project includes some classes which are used to generate very simple MS Excel file (xls) via PHP. The generated xls file can be obtained by web as a stream file or can be written under $default_dir path. It has very simple usage to generate xls file from a select query using mysql, pgsql, oci8 databases. Limitation: - Max character size of a text(label) cell is 255 ( due to MS Excel 5.0 Binary File Format definition ) Please get the full pack at http://sourceforge.net/projects/psxlsgen/


PHP View Masq  

Type: application
Added by: avinanta
Entered: 12/10/2001
Last modified: 31/10/2000
Rating: - (fewer than 3 votes)
Views: 4339
Simple PHP script to display IP Masquerade Table.


phpindowhois ( update! )  

Type: code fragment
Added by: idban
Entered: 02/05/2000
Last modified: 07/12/2001
Rating: **** (5 votes)
Views: 8550
whois on indonesian domain, our nic isnt open but they have CGI,
so i use php to praser their CGI output :)

this is update version, they change
http://whois.idnic.net.id/cgi-bin/whois-cgi
to
http://whois.idnic.net.id/cgi-bin/whois.cgi

please update your indo domain lookup!


PHPMan2HTML  

Type: code fragment
Added by: ctafuro
Entered: 09/07/2003
Last modified: 31/10/2003
Rating: - (fewer than 3 votes)
Views: 4235
This php script allows you to view man pages through a web browser.


Populate PDF form fields  

Type: code fragment
Added by: amikeal
Entered: 04/06/2002
Last modified: 06/12/2001
Rating: ***** (3 votes)
Views: 10146
If you want to use PHP to populate fields in a PDF form (for instance, extracting data from a database and prefilling fields for the user) and you don't have the FDF module available to you for whatever reason, this function should work. Regardless, I think this function is more straightforward to use than the FDF module functions.


preform.php  

Type: code fragment
Added by: gleghorn
Entered: 06/03/2001
Last modified: 03/12/2000
Rating: - (fewer than 3 votes)
Views: 3940
I use this to make my windows 2000 Internet explorer bookmarks available from a webpage. This code is very basic and will require modification to be of use elsewhere (I make specific references to my filesystem layout). The linux box mounts two w2k drives as /mnt/gleghorn/khome and /mnt/gleghorn/favs, a miscellaneous area and my MSIE bookmarks respectively. The code refers to preform.phps. This is just a symbolic link to preform.php I specify preform.php as the last in the apache DirectoryIndex list, followed by index.html, default.html etc. When browsing either of the two mounted drives, if invoked by the absence of anything else indexy, it scans the directories and pretty-prints what it finds. Any MSIE-style *.url files are written out human-readable and clickable. hash include standard disclaimer


Process list under windows  

Type: code fragment
Added by: nikolas_
Entered: 24/08/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 3292
A function that returns the running processes list of windows in an assosiative array


Proxy Bypass  

Type: application
Added by: nhorvath
Entered: 04/07/2002
Last modified: 07/12/2001
Rating: - (fewer than 3 votes)
Views: 23711
For all you students out there with over-restricted internet access this will get around it! Just open this page from school and enter the desired url. The internet blocking software thinks its viewning a harmless page and not the blocked one! There is a MySQL based login built in that can be uncommented and used if you have access to a MySQL database as well.


Proxy Bypass filter  

Type: application
Added by: angelxmod
Entered: 23/06/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 6342
This script downloads the contents of a site and displays it. Changing all the links.


PSD Dimensions Reader Function  

Type: code fragment
Added by: bcreavis
Entered: 13/11/2006
Last modified: 02/11/2005
Rating: - (fewer than 3 votes)
Views: 1724
A little function I created to read the dimensions (width, height) of an Adobe Photoshop image, or PSD. PSDs exported by third-party programs normally don't have the required embedded tags to be read. If the file is unparsable, the function returns null. If it can, however, it returns an array with the width at index 0 and the height at index 1.


Query Reflector  

Type: application
Added by: inertia
Entered: 19/01/2001
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 3838
Diagnostic utility for displaying all query pairs in a table.


Quick-n-Easy PHP classes  

Type: application
Added by: Stephan
Entered: 03/03/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 5739
A PERL app to quickly create complete PHP classes from the command line.


random ad banner/file rotator  

Type: application
Added by: markeyd
Entered: 01/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 5970
This simple ad banner rotator can actually be used to randomly serve any file (via an include) on a php page, not just an ad banner. Ad tags which contain multiple links, or images will not break the page which display it. get it at http://markdonline.com/code/code.php3


Random background music script  

Type: application
Added by: bighead2002
Entered: 14/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 7997

Use this script to automatically add a random background music to your site. Requires the use of an extra frame, to make sure the music continues, even if a visitor navigates to another part of your site.

This script ain't perfect yet! I've never learned PHP, but I managed to wrote this one so any suggestion is greatly appreciated!

Some words in the script are in Dutch. If this gives any trouble, just mail me at mark@mjansen.doge.nl and I'll translate them for you.



redirect function  

Type: code fragment
Added by: beefboles
Entered: 05/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 23181
This is a redirect function that takes care of most redirect functions (session, vars, ect). Uses the header function so you must call this function before any html output. THere are 4 types of redirect built into this function.

First is a simple redirect called like this redirect("page.php");

Second redirects and adds session info and is i called like this redirect("page.php", 1) the '1' tells the function to add the session info.

third is redirecting while adding variables to the url. called like this redirect("page.php",2,$my array) $my_array contains the variables and values to pass. example $my_array[0] = "var1=12";
$my_array[1] = "var2=15";
$my_array[2] = "var3=78";
redirect will result in /page.php?var1=12&var2=15$var3=78

THe last redirect is a redirect passing both URL variables as well as session information. redirect("page.php",3,$my_array);


register_globals patch  

Type: code fragment
Added by: Nimco
Entered: 02/09/2002
Last modified: 09/12/2001
Rating: - (fewer than 3 votes)
Views: 4277
This short patch will allow your scripts to continue working if register_globals is changed to off, without any further modification of your scripts.


Replace / Remove argument in REQUEST_URL  

Type: application
Added by: madwax
Entered: 10/07/2006
Last modified: 09/12/2005
Rating: - (fewer than 3 votes)
Views: 3835
With more and more people using FrontControllers (pagination scripts) to have one entry point to applications or homepages - I found a need for a function that took a request url (or any url) and replace certain values of arguments or even to remove some arguments. This function does exactly that. It takes an input string and then replaces or removes arguments.


Replacement function with array support.  

Type: code fragment
Added by: inter
Entered: 15/08/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 4477
To replace in $str all the [some] with the value in $some,
and with the {some} with the $art["some"].
With support for more then 1 {} of [] on 1 line.

If you have some better source for this, please mail me....


rWhois  

Type: code fragment
Added by: joeldg
Entered: 25/10/2002
Last modified: 31/10/2001
Rating: - (fewer than 3 votes)
Views: 4854
rWhois (see rwhois.net) in PHP. You can use this function to get geographic data back on on an IP, City/State/Zip this might come in handy if you are attempting to geo-target an IP by country, say, for an ad program.


Save to PDF  

Type: code fragment
Added by: hermawan
Entered: 13/04/2001
Last modified: 04/12/2000
Rating: **** (10 votes)
Views: 32838
Want your customer to save your article, product catalog, or just a document to PDF format? PDF is very easy document format because it's portable, they can print it anywhere.


SetiStats  

Type: class
Added by: capt
Entered: 30/03/2002
Last modified: 04/12/2001
Rating: - (fewer than 3 votes)
Views: 3557
fetch your Seti@Home UserStats


shadow.class  

Type: class
Added by: oschlag
Entered: 24/04/2001
Last modified: 04/12/2000
Rating: - (fewer than 3 votes)
Views: 4050
Class to manage User and Group Accounts on Shadow based Linux/Unix Systems


Shared memory functions and examples  

Type: code fragment
Added by: joeldg
Entered: 14/10/2002
Last modified: 31/10/2001
Rating: - (fewer than 3 votes)
Views: 4282
Shared memory examples, there are few examples to be found just about anywhere on this subject, I wrote these up a few months ago and am posting them here in case anyone might need these.


Signals & Slots  

Type: code fragment
Added by: zak
Entered: 16/10/2001
Last modified: 01/11/2000
Rating: - (fewer than 3 votes)
Views: 4367
Slots and Signals ================= This code is a simple implementation of the slots/signals concept. Slots and signals are used by the Qt toolkit as a kind of extra-powerful callback. The best source of information on them is the Qt toolkit docs see (http://doc.trolltech.com/3.0/signalsandslots.html) To briefly summarize, they allow you to bind a signal to one or more slots and/or signals. When a signal is 'emitted', all slots and signals bound to it are called. Each slot corresponds to a single function. When a signal is called by another signal, the called signal is emitted, calling the slots and signals that it is bound to. Any parameters passed when the signal is emitted are passed to the slots and signals that that are called. This easily allows you to write handler functions (slots) and bind them to events (signals) as needed - without having to make explicit function calls or rewrite handler functions just to accomodate minor modifications in how a function is called. I find slots and signals particular useful for message passing and error handling. Have Fun! :) Zak Greant


Simple debug output library  

Type: class library
Added by: Boba
Entered: 03/03/2000
Last modified: 08/12/1999
Rating: ***** (5 votes)
Views: 5809
Simple debug output library with sintax highligting. Object output also supported.


Simple FTP Upload  

Type: code fragment
Added by: fath
Entered: 25/04/2001
Last modified: 04/12/2000
Rating: *** (4 votes)
Views: 12321
Simple script to upload files via FTP. You can define destination directories by scroll-down menu, maximum file size and allowed file extensions. Originally written to allow clerks uploading zip files into certain restriced areas of my website.


Singleton  

Type: class
Added by: marcusbaker
Entered: 04/04/2002
Last modified: 04/12/2001
Rating: - (fewer than 3 votes)
Views: 4384
Allows creation of singleton classes by inheriting this superclass. The interface is the same as the GOF pattern. Handles constructor parameters, but as values only, but this can be easily worked arounded by overriding the instance() method.


Singleton  

Type: class
Added by: marcusbaker
Entered: 04/04/2002
Last modified: 04/12/2001
Rating: - (fewer than 3 votes)
Views: 4174
Create a singleton by inheriting from this superclass. This is the classic GOF pattern and copies this interface. Handles constructor parameters as values, but this can be worked around by including this class as a guard and overriding the instance() class method.


SiteSearch 1.1  

Type: application
Added by: Lysander
Entered: 07/02/2001
Last modified: 02/12/2001
Rating: ***** (7 votes)
Views: 10663
This app lets endusers search your site for keywords. You specify which directories should be included in the search. Version 1.1 Fixed a bug where if two words were only seperated by HTML Tags they were placed into only one string.


SiteSearch 1.2  

Type: application
Added by: lysander
Entered: 08/03/2002
Last modified: 03/12/2001
Rating: - (fewer than 3 votes)
Views: 5999
This app lets endusers search your site for keywords. You specify which directories should be included in the search. Version 1.2 Added: Reading of HTML Title tags for generating search results. Checking to see if SiteSearch has been included or required by another script to avoid HTML errors. Filter for files not to include in searches.


SMB Print  

Type: class
Added by: Rival7
Entered: 29/03/2000
Last modified: 08/12/1999
Rating: **** (3 votes)
Views: 5735
SMB Print is a Samba text printing interface class.


Static Arrays  

Type: code fragment
Added by: rlaurie
Entered: 23/08/2006
Last modified: 09/12/2005
Rating: - (fewer than 3 votes)
Views: 1963
This is the method I use to work with flags and their string counter-parts when working on non-OO projects. It's nice because it keeps these flag strings out of global scope, while only using one static copy of the array through the entire lifespan of the script.


Static File Based Search Engine  

Type: application
Added by: dimonemon
Entered: 03/05/2001
Last modified: 05/12/2000
Rating: - (fewer than 3 votes)
Views: 4455
This simple application allows you to search through the file containing urls, their descriptions and keywords associated with them.


Store variables in shared memory. (ie cache variables)  

Type: code fragment
Added by: jcollins
Entered: 20/08/2000
Last modified: 08/12/1999
Rating: **** (5 votes)
Views: 8639
Save a variable to shared memory. In other words you are caching variables to shared memory and instantly making them available to all your php pages via shared memory.


StringChk  

Type: code fragment
Added by: fath
Entered: 03/06/2001
Last modified: 06/12/2000
Rating: - (fewer than 3 votes)
Views: 4165
Simple fragmnet to check whether an user supplied string contains forbidden chars, wich may led our PHP script behave unexpected way.


str_swap  

Type: code fragment
Added by: stephenv
Entered: 12/06/2001
Last modified: 07/12/2000
Rating: - (fewer than 3 votes)
Views: 3730
I was kind of hoping to find a function where I can swap values in a string, but I couldn't find one, so I wrote one, here it is


SWF header parser  

Type: class
Added by: slainte
Entered: 07/07/2004
Last modified: 07/12/2003
Rating: - (fewer than 3 votes)
Views: 11455
PHP class to parse and extract data held in the header section from SWF flash files, like width, height, version, etc. Supports both, compressed and non-compressed SWF files.


SysLog Class (RFC 3164) implementation  

Type: class
Added by: sysco
Entered: 24/12/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 3542
The Syslog class is a syslog device implementation in PHP following the RFC 3164 rules.
Using this class, it is possible to send a syslog message to an external relay or collector using the UDP port 514.
Sockets support must be enabled.
In Linux and *nix environments, the extension is enabled at compile time using the --enable-sockets configure option.
In Windows, PHP Sockets can be activated by un-commenting extension=php_sockets.dll in php.ini.


Terminal color output in command line PHP  

Type: code fragment
Added by: joeldg
Entered: 14/10/2002
Last modified: 31/10/2001
Rating: - (fewer than 3 votes)
Views: 10414
At times it is useful to output colored terminal output when running command line PHP scripts. (i.e. Install scripts, general run scripts etc..).. Well, here is one way to do it that is pretty simple.


The Chegulator  

Type: application
Added by: robF
Entered: 03/06/2003
Last modified: 09/12/2002
Rating: - (fewer than 3 votes)
Views: 4386
A brutal hack in PHP and shell to get and display results from Fark (www.fark.com) Photoshop competitions


The Personal Journal  

Type: code fragment
Added by: ThermoDust
Entered: 09/05/2002
Last modified: 05/12/2001
Rating: - (fewer than 3 votes)
Views: 3980
This is a simple password protected journal. Easy to use installer and easy to use gui look.


Traversing a binary tree  

Type: application
Added by: galaxyh
Entered: 04/05/2001
Last modified: 05/12/2000
Rating: - (fewer than 3 votes)
Views: 12739
traversing a binary tree in preorder, inorder and postorder


UPS Cost Calculation  

Type: class library
Added by: hermawan
Entered: 27/05/2004
Last modified: 06/12/2003
Rating: - (fewer than 3 votes)
Views: 4959
With this class you can find out how much you have to pay for delivering using UPS.


URL Mailer  

Type: code fragment
Added by: hermawan
Entered: 05/05/2003
Last modified: 05/12/2002
Rating: - (fewer than 3 votes)
Views: 4934
Small snippet to send the content of URL to your friend. Try it


URl rewitring without mod_rewrite (update for PHPSSESID correct support)  

Type: code fragment
Added by: cyberdark
Entered: 27/08/2001
Last modified: 01/11/2000
Rating: **** (3 votes)
Views: 6650
Simple example of how to manage variable in the way the URL seems to be a directory, being in fact call to a PHP script


US State array  

Type: code fragment
Added by: mgkimsal
Entered: 26/07/2000
Last modified: 08/12/1999
Rating: ***** (3 votes)
Views: 11026
Many of you may have something like this already, but I would rather be able to find this here than root around my drive in a month. :) You may need to add Puerto Rico, Micronesia, etc for your needs, but the basic 50 plus DC were enough for me most of the time.


Which binary Functions satisfy Semigroupoid  

Type: application
Added by: mike_chimirev
Entered: 15/09/2003
Last modified: 09/12/2002
Rating: - (fewer than 3 votes)
Views: 2876
Calculation to determine which of 16 binary functions satisfy the associative law of SEMIGROUPOID and which ones don't


Whois Client (domains/ip/etc)  

Type: code fragment
Added by: nakayama
Entered: 02/03/2000
Last modified: 04/12/2002
Rating: *** (5 votes)
Views: 6509
Whois.
Consulta de dominio.
Domain query.


Whois in Browser  

Type: code fragment
Added by: nailufar
Entered: 28/08/2001
Last modified: 01/11/2000
Rating: - (fewer than 3 votes)
Views: 4441
you can look up domain which you need it.


Whois lookup function  

Type: code fragment
Added by: atlaz
Entered: 05/06/2000
Last modified: 01/12/2003
Rating: ***** (6 votes)
Views: 18004
whois lookup function for most domains you could wish to use. Easily added to for support for more domain registries. Similar to the one in the top 10 but doesn't use a middleman to retrieve the data.


Write Generation I  

Type: code fragment
Added by: tgtRanCe
Entered: 20/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 4396
Write is a simple editor for the web. It has a File list box on the left side and the editor textfield in the right side. The next step is to build a class module which generates automatically this editor.


Xenolth's Unique Ad Rotator  

Type: application
Added by: xenolth
Entered: 11/12/2003
Last modified: 02/11/2002
Rating: - (fewer than 3 votes)
Views: 4346
If your site uses a third-party adserver that pays you for unique impressions, your site may be displaying ads that you are not getting paid for. Xenolth's Unique Ad Rotator is a PHP script that will rotate your banner/pop-up ads to make sure that you get the maximum profit from your ads, and it will also make sure that your website only displays ads when you're getting paid for them.


ZIP Code Distance and Range Claculation Class  

Type: class
Added by: micahcarrick
Entered: 14/04/2005
Last modified: 04/12/2004
Rating: - (fewer than 3 votes)
Views: 13732
This is a class for calculating the distance between two zip codes and/or obtaining a list of zip codes within a range of a given zip code along with the mileage from that zip code. This class uses lattitude and longitude coordinates taken from a MySQL table to calculate the distances. The class along with a demo and the SQL files required to create the database can be downloaded from http://www.micahcarrick.com/files/zipcode-1.0.0.zip



Search



This Category All Categories