[PHP] Re: mcrypt_create_iv - why so slow?

2013-05-31 Thread Matt Graham
From: Nathan Nobbe > Interesting, using MCRYPT_DEV_URANDOM instead of MCRYPT_DEV_RANDOM > seems practically instantaneous. Still [raises] the question though, > any idea what's holding up the show w/ MCRYPT_DEV_RANDOM? /dev/random is a high quality entropy source and requires more time to generate

[PHP] Re: Creating an Advanced Form

2012-11-02 Thread Matt Graham
Jonathan Davies wrote: > I am attempting to create an advanced form with 9 different search > fields. I am [concatenating a bunch of bits together] so I don't > have to [create] over 300,000 IF statements. > mysql_fetch_assoc(): supplied argument is not a valid MySQL > result resource on line 261

Re: [PHP] File moving hell on Windows

2012-07-31 Thread Matt Graham
Mike Mackintosh wrote: >> What protocol are you targeting? FTP, SFTP, SSH, SMB, etc? From: Brian Dunning > Regular Windows networking. If you're using a 'Doze box, and you want to use PHP functions like rename(), then IIRC the only real option that you have is to do something like: system("net

[PHP] re: More Error Reporting Problems

2011-12-30 Thread Matt Graham
From: Floyd Resler > I'm still having problems with error reporting and I'm not sure why. > php.ini section: > error_reporting = E_ALL & ~E_DEPRECATED > display_errors = On > log_errors = On > error_log = /var/log/php_errors.log > Errors are neither getting displayed nor recorded in my error log

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Matt Graham
From: David Harkness > I don't always use braces, but when I do I use Compact Control Readability > style. Stay coding, my friends. ...and when you use CCR style, you can sing, "I see a bad brace a-risin'"? -- Matt G / Dances With Crows The Crow202 Blog: http://crow202.org/wordpress/ There is

[PHP] Re: postgresql database access failure

2011-05-02 Thread Matt Graham
Florin Jurcovici wrote: > My personal recommendation, however, is to drop old-style procedural > drivers and switch to PDO - it's much more convenient to use, IMO. Just be careful. PDO's implementation of MySQL doesn't implement the mysql_set_charset() function, or at least it didn't a while back

Re: [PHP] code quest

2010-12-04 Thread Matt Graham
From: Kirk Bailey > OK, now here's a giggle; I like ssi includes. If I put the script > in as an ssi include, will it still work? If you're using Apache, and you do ...the PHP in something.php will execute and produce output, but something.php will not have any access to $_GET or $_POST or $_S

RE: [PHP] Pros/Cons of using mysqli prepared statments

2010-11-04 Thread Matt Graham
"Jay Blanchard" didst scribe: > using stored procedures has a lot of advantages. If you need to > change your SQL you can do it in one spot. It reinforces MVS or > modular coding behavior, the SP becomes very re-usable. Security > is improved. Performance can be improved. You can put the bulk of >

Re: [PHP] Software to read/write Excel to CD?

2009-05-14 Thread Matt Graham
Ashley Sheridan wrote: > Paul M Foster wrote: >> On Thu, May 14, 2009 at 03:22:12PM -0500, Skip Evans wrote: >>> One of the things the other company said was possible, and I'm >>> not familiar with... if I understand correctly, is to create a >>> CD with not just an Excel spreadsheet, but software

[PHP] PHP job available, Phoenix, AZ, USA

2008-10-02 Thread Matt Graham
I just saw this. If someone is in the Phoenix, AZ, USA area and wants a job writing/maintaining PHP code, this may be right for you. Contact details below: --- azcentral.com, Arizona's leading online source for up to date news and information, is seeking a Senior Online Develop

[PHP] Re: rfc822_write_address() / CVE-2008-2829 problem

2008-07-07 Thread Matt Graham
From: "M. Sokolewicz" <[EMAIL PROTECTED]> > Matt Graham wrote: >> PHP had potential vulnerability CVE-2008-2829 >> http://bugs.php.net/bug.php?id=42862 for a reasonable discussion and >> an (unofficial) patch. >> >> I'm just curious

[PHP] rfc822_write_address() / CVE-2008-2829 problem

2008-07-07 Thread Matt Graham
Hello, list. A few days ago, a security scan said that our machines that were running PHP had potential vulnerability CVE-2008-2829 , a buffer overflow in rfc822_write_address(). Discussions about this are relatively easy to find with Google, but check out http://bugs.php.net/bug.php?id=42862 f