Zip Codes





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

8
Date Submitted Tue. Nov. 14th, 2006 1:24 PM
Revision 1
Scripter shachi
Tags File | PHP | splitter
Comments 0 comments
This function simply splits a file based on the splitter supplied and returns an array with the values. It's pretty much like the file() function. This script could be helpful in section editings.
8
Date Submitted Mon. Oct. 23rd, 2006 7:59 PM
Revision 1
Helper lgrover
Tags my.cnf | mysql | optimization
Comments 0 comments
When ByteMyCode was crashing because of the traffic load, we started optimizing MySQL. The server had a load of >50 but the processor was all tied up in IOWAIT. We realized that the database was the source of the bottleneck so we increased all of the cache sizes. Now, it is really fast.
8
Date Submitted Mon. Oct. 16th, 2006 9:59 AM
Revision 1
Beginner rdohms
Tags PHP
Comments 2 comments
A very simple yet very useful function to have around. Especially generating session codes, filenames or new passwords
8
Date Submitted Wed. Aug. 30th, 2006 11:54 PM
Revision 1
Beginner smallshellscript
Tags bash | com | mysql | sh
Comments 0 comments
This little tool is pretty useful for administrators who wear the hat of both system admin and DBA on Linux/MySQL boxes. I wrote it as kind of a joke for our Perl developers, but now I use it just about every day for everything from at prompt hackups to full on table space utilization monitoring scripts.

The snippet has the library script that you can source into scripts that actually do work, as well as a script that uses the functions in the libraries. Anyone who has used the C API should be able to relate to using this script.

It's pretty fast and lightweight. It makes only one external call to mysql and sed per query. The rest is all bash builtins. Requires bash > 3.0
8
Date Submitted Sun. Oct. 9th, 2005 8:32 PM
Revision 1
Coder mattrmiller
Tags PHP | String | Truncate
Comments 1 comments
Truncate String
8
Date Submitted Sun. Feb. 19th, 2006 2:27 PM
Revision 2
Coder mattrmiller
Tags PHP | Referrer | Validate
Comments 6 comments
Fixed missing $ sign.
8
Date Submitted Tue. Feb. 21st, 2006 9:50 PM
Revision 2
Coder mattrmiller
Tags PHP | Ping | PingOMatic
Comments 0 comments
Ping, PingOMatic service for an updated. Requires: The Inutio XML-RPC Library.
7
Date Submitted Mon. May. 21st, 2007 12:22 AM
Revision 1
Scripter SecondV
Tags "register globals" register_globals, | PHP
Comments 0 comments
This function will reverse the affects of register_globals
7
Date Submitted Fri. Oct. 14th, 2005 6:10 AM
Revision 1
Helper lilleman
Tags File | Folder | PHP | Write
Comments 1 comments
Implementation of file_put_contents for PHP4
7
Date Submitted Thu. Mar. 1st, 2007 3:53 PM
Revision 1
Helper mjlintz
Tags PHP
Comments 0 comments
Generate multi select box from data in db, then when submitted, each selection is written to a db table as it's own record, each tied together by a common record id.