PHP/MySQL Authentication





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

12
Date Submitted Mon. Oct. 9th, 2006 8:18 AM
Revision 1
Helper shell
Tags PHP
Comments 1 comments
Over the summer, I worked on a project in which I needed to parse logfiles which were in the following format:

IP|USE|TIME>IP2|USE2|TIME2>

and so on.

When I parsed them to display the log file in a user-friendly fashion, I used the following code:
14
Date Submitted Mon. Oct. 9th, 2006 10:09 AM
Revision 1
Helper inxilpro
Tags debug | HTML | PHP | Variable
Comments 2 comments
Here's a basic function for debugging any kind of PHP variable. It allows for "invisible" or "visible" output--that is output in HTML comments or within visible HTML tags. It also supports customizable "containers" which lets you easily edit the look of the visible and invisible blocks. Examples in code below.
17
Date Submitted Mon. Oct. 9th, 2006 2:16 PM
Revision 1
Beginner adorkable81
Tags Database | PHP
Comments 2 comments
Database Class with quick connectivity and useful database functio
15
Date Submitted Mon. Oct. 9th, 2006 2:49 PM
Revision 1
Scripter wiz1705
Tags classes | PHP | plugins
Comments 0 comments
Basic internal class loading for PHP. Could make some plugins with this code if used properly.
16
Date Submitted Mon. Oct. 9th, 2006 2:58 PM
Revision 1
Scripter wiz1705
Tags Array | PHP | XML
Comments 1 comments
I've seen XML 2 Array functions done in other ways but this is the shortest implementation I've seen yet. I didnt write it myself though, but I thought I'd submit it for common good of this site. It uses regex and works prefectly.
15
Date Submitted Mon. Oct. 9th, 2006 3:13 PM
Revision 1
Helper inxilpro
Tags classes | Database | DB | PHP | Simple
Comments 5 comments
This is a bare-bones DB connectivity class. It's really just meant to abstract a few basic mysql_ functions so that if you ever have to change DBs you don't have to change every database function call.

I really just threw this together on a whim with no testing what-so-ever. Also, it only abstracts the most basic MySQL functions--this is intentional; please expand it as you see fit.
15
Date Submitted Mon. Oct. 9th, 2006 9:57 PM
Revision 1
Helper inxilpro
Tags Convert | CSV | PHP | XML
Comments 1 comments
This function converts a CSV file to a simple XML file.
19
Date Submitted Mon. Oct. 9th, 2006 10:39 PM
Revision 1
Helper inxilpro
Tags "Random Generation" | Generator | Password | PHP | Random
Comments 2 comments
This function creates relatively secure random passwords. It's by no means ideal, but it should work in most non-critical situations. The nice thing is the generator attempts to create passwords that people can pronounce and chooses letters that won't be mistaken for others (such as the numeral "1", an upper-case "i" and a lower-case "L"). To keep the code short much of this functionality is very rudimentary, but it's better than nothing.
6
Date Submitted Wed. Oct. 11th, 2006 4:34 AM
Revision 1
Beginner wlasson
Tags PHP
Comments 7 comments
This is a state list I made for a website. I kept it just in case i ever needed it again, which i have. I figured it would probably help someone else out.

It includes all states in the U.S.
5
Date Submitted Wed. Oct. 11th, 2006 7:58 AM
Revision 1
Scripter ctiggerf
Tags PHP | String
Comments 3 comments
Two very usefull functions to have around.

(note: dollarfy requires commify to work)