[PHP] Validating E-mail Accounts

2002-10-31 Thread Robert Miller
Is it possible, or (even better) do you have a sample script that can take a user-submitted e-mail address, contact the host, and verify that the account exists? Thanks, Rob

[PHP] Cannot Redeclare Function

2002-09-19 Thread Robert Miller
Hello, My function to read a comma separated text file and return a sorted multi-dimensional array will not work if used more than once per page. I know why I'm having this problem. But, I don't know how to solve it. :-( Calling it Twice: $services = tbl2array (../locations/service.txt,

[PHP] usort will not take variable

2002-09-19 Thread Robert Miller
Hello, Do you know the answer to this got'tcha? I want to call usort with a variable function name. Basically, I want usort to sort any field I specify. Currently, I'm stuck declaring a pile of functions and calling usort from if/elseif statements. :-( Current: function compname ($a, $b)

[PHP] Browser Sniff (Code Review Encouraged)

2002-02-18 Thread Robert Miller
Hello, Below is code I hacked up to read a user agent string (i.e. Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204 ) and return several items including: - the browser name, - the browser version, - the browser's major version number, and - user definable compatibility

[PHP] Stripping Unwanted Characters

2001-11-24 Thread Robert Miller
I'm posting this (see below) for two reasons: 1. so that others may benefit, and 2. to invite feedback on my code (PHP is the first language I have learned... and I've only been doing this for a week or so). Cheers, Rob P.S. Has anyone found a good way to parse variables to validate specific

[PHP] Adding Dates (To Obtain Future Dates)

2001-11-13 Thread Robert Miller
This problem took a while to figure out. I'm posting the solution so that = other's may find this example. If you know of a better way, please reply. = :-) Cheers, Rob Problem: Generate Future Dates: Sub-Problem: Future Dates are Dictated by Record Type (Permanent or = Temporary) The Script:

[PHP] PDF Library Not Working (Call to undefined function)

2001-11-13 Thread Robert Miller
I RTFM but did not find a solution. My head hurts from banging it against = the wall. :-P Apache, OpenSSL, MySQL and PHP work fine... but the PDF libraries will not = work. I used the following configure commands: PHP: './configure' '--with-mysql=3D/usr/local/mysql/' '--with-xml' =