Re: [PHP] Question about "shortening" a string

2005-03-12 Thread Steve Slater
er ways to do it I'm sure. I just finished a project with a mess of pattern matching so have regex on the brain. :-) Steve On Mar 11, 2005, at 11:39 PM, Steve Slater wrote: Mario, Many ways to do it, most using regex. This is not as clean as it can be but still shows the idea: This example

Re: [PHP] Question about "shortening" a string

2005-03-11 Thread Steve Slater
o Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Steve Slater [EMAIL PROTECTED] PHP / MySQL / Web App Security (LAMP) Training: http://www.handsonsecurity.com/training.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working with 3 arrays

2005-03-10 Thread Steve Slater
lds = $_POST[field]; foreach ($fields as $field) { Do the stuff } But I am a bit perplexed on how to operate on all three. -- Steve Slater [EMAIL PROTECTED] PHP / MySQL / Web App Security (LAMP) Training: http://www.handsonsecurity.com/training.html -- PHP General Mailing List (h

Re: [PHP] mysql_pconnect / persistent database conections

2005-01-27 Thread Steve Slater
to access newer features of MySQL 4.1 and higher...like prepared statements. Here is the blurb from Zend: http://www.zend.com/php5/articles/php5-mysqli.php#fn1 Steve ------ Steve Slater [EMAIL PROTECTED] Information Security Training and Consulting PHP / MySQL / Web App Security (LAMP)

Re: [PHP] Id_num = ""

2005-01-24 Thread Steve Slater
an one input (say both a GET and a COOKIE set id_num), the variables_order variable in php.ini determines which one will overwrite the other. Steve -- Steve Slater [EMAIL PROTECTED] PHP / MySQL / Web App Security (LAMP) Training: http://www.handsonsecurity.com/training.html -- PHP