RE: [PHP] another REGEX question

2001-08-03 Thread Steve Edberg
tion is how do i get it to match the smallest. > >thanx in advance.. > >Julian > -- +-- Factoid: Of the 100 largest economies in the world, 51 are --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED]

RE: [PHP] ucwords Except 'The' 'And' etc?

2001-08-13 Thread Steve Edberg
t; >None that I've seen. >But it wouldn't be hard to write a function that takes a >string, passes that string to ucwords() and then you can >run through a pre-defined array and just do an ereg_replace() >on those words you want to remain lowercase... >

RE: [PHP] ucwords Except 'The' 'And' etc?

2001-08-14 Thread Steve Edberg
uld all be in >> >lowercase >> > >> > $String = ucwords(strtolower(ltrim($String))); # LINE A >> > >> > foreach ($ExceptionList as $Word) >> > { >> > $String = eregi_replace("[[:space:]]+$Word[[:sp

Re: [PHP] Unix vs PC test for server

2001-08-16 Thread Steve Edberg
>You could also use a config-file. This way, you could run your scripts >on more than two sites. > >regards >Wagner > >PS: My PC is running UNIX. > >-- >Madness takes its toll. Please have exact change. > -- + Open source questions? ---

Re: [PHP] Errors

2001-08-19 Thread Steve Edberg
gt;< <>< <>< God is our provider ><> ><> ><> ><> >http://www.body-builders.org > -- + Open source questions? + | Steve Edberg University of California, Davis | | [E

Re: [PHP] Sorting IP Address Data

2001-08-23 Thread Steve Edberg
subscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> To contact the list administrators, e-mail: [EMAIL PROTECTED] > >-- > >Chris Fry >Quillsoft Pty Ltd >Specialists in Secure Internet Services and E-Commerce Solutions >10 Gr

Re: [PHP] Sorting IP Address Data (oops!)

2001-08-23 Thread Steve Edberg
in REVERSE order, use krsort() instead of ksort(). Usual 'untested code' warnings apply. - steve -- + Open source questions? + | Steve Edberg University of California, Davis | | [EMAIL PROTECTED]

Re: [PHP] POST problem

2001-08-28 Thread Steve Edberg
form fields. Right? > >So, my problem is that it doesn't. Instead, it prints >Hi.You are years old. > >Can anyone help me to figure it out or to point me to >the right direction so in future i won't annoy you >with my silly questions. > >Thanks in advance, >Mas

RE: [PHP] is_numeric for php3

2001-08-28 Thread Steve Edberg
what i'd >like to see. function is_numeric($Something) { return (string)(1.0*$Something) == $Something; } should work. -steve +--------+ | Steve Edberg University of California, Davis | | [EMA

Re: [PHP] Quick TXT document stuff

2001-08-30 Thread Steve Edberg
.StupeedStudios.f2s.com >Home of the burning lego man! > >ICQ: 115852509 >MSN: [EMAIL PROTECTED] >AIM: legokiller666 -- + Open source questions? + | Steve Edberg University of California, Davis | | [EMAIL PROTECTED]

Re: [PHP] Engine Question

2001-09-04 Thread Steve Edberg
et an error. >How do I do this with php4? -- + Open source questions? + | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ ht

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Steve Edberg
use JavaScript, I want this redirection to >happen at the server and not the client. -- +-------- Open source questions? + | Steve Edberg University of California, Davis | | [EMAIL PROTECTED]

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Steve Edberg
-steve At 1:00 PM -0400 9/10/01, Ken wrote: >At 08:11 AM 9/10/01 -0700, Steve Edberg wrote: >>Right off the top of my head, you have three options that I can see: >>(3) Use a META REFRESH tag. For example: >> >> >> >>where 1 is the time (in s

Re: [PHP] header redirection

2001-09-14 Thread Steve Edberg
irection? >Just having the redirection code before the other code does not work. > > >Linux running apache and php4 > >poppy > -- + Open source questions? + | Steve Edberg University of California, Davis |

[PHP] Re: Get the beginning array number

2001-09-18 Thread Steve Edberg
;> Brandon Orther >> WebIntellects Design/Development Manager >> [EMAIL PROTECTED] >> 800-994-6364 >> www.webintellects.com >> > > >> -- + Open source questions? + | Steve Edberg

[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread Steve Edberg
ese 2 sql statements in one time with PHP. >> >> I tried to implement like this : >> >> $query = " >> INSERT INTO com VALUES ('pentium'); >> INSERT INTO com VALUES ('amd'); >> "; >> mysql_query

Re: [PHP] Run or execute a php cript within a php cript.

2001-09-20 Thread Steve Edberg
a >other php script without a mouse click (). > >I have a lot of php scripts and need them to execute from a master php script. > >any help? > >Thanks all, > >Yours Hans. -- + Open source questions? + | Steve Edber

Re: [PHP] fired!

2001-09-21 Thread Steve Edberg
At 1:49 PM +0200 9/21/01, <[EMAIL PROTECTED]> wrote: >lets have a php-beer for all the dot.com unenployed! > My PHP 4.0.5 doesn't have php_beer() function :( Is that available in CVS tree? -- + Open source questions? -------

Re: [PHP] ucwords added functionality?

2001-09-24 Thread Steve Edberg
ut would it be possible to add an optional parameter to ucwords which would >be an array of words to skip? i would think this would be useful to >many. > >any thoughts? > -- + Open source questions? ----+ | Steve Edberg

Re: [PHP] Problem with regex

2001-09-25 Thread Steve Edberg
p > > Oliver > > > >= >mailto: [EMAIL PROTECTED] >www.ertl.co.za > >__ >Do You Yahoo!? >Get email alerts & NEW webcam video instant messaging with Yahoo! >Messenger. http://im.yahoo.com > -- + Open

Re: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Steve Edberg
e one of the db wrapper classes available in PHPLIB, PEAR or Metabase. -steve -- + Open source questions? + | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | h

Re: [PHP] xml tags interfere with php tags

2004-09-01 Thread Steve Edberg
-tags is discouraged for this, among other, reasons. -steve -- +--- my people are the people of the dessert, ---+ | Steve Edberg [EMAIL PROTECTED] | | University of California, Davis (530)754-9127 | | Progra

Re: [PHP] Create unique non-autoincrement key for 700,000 records?

2008-12-15 Thread Steve Edberg
this unique value? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php update mytable set hash_field = md5(AutoIdField + unix_timestamp()) -- Bastien >Cat, the other other white meat -- +-

Re: [PHP] Holes in mysql primary key and other db issues...

2007-03-05 Thread Steve Edberg
ttp://dev.mysql.com/doc/refman/4.1/en/user-variables.html http://dev.mysql.com/doc/refman/4.1/en/mathematical-functions.html -steve PS. If you *really* wanted to renumber the database, you should be able to drop and then re-add the auto_increment column, but that's

Re: [PHP] Back to security

2007-03-10 Thread Steve Edberg
SSLRequireSSL for the directories that should be SSL-secured. steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMA

Re: [PHP] Array mysteries

2007-03-11 Thread Steve Edberg
time.php I think you'll find your work has been at least partially done for you. And, see http://php.he.net/manual/en/language.variables.scope.php for more information on variable scope. steve -- +--- my people are the people of the dessert, -

Re: [PHP] Identifying spam text

2004-05-28 Thread Steve Edberg
;t have a pure-PHP solution, though, if that was really important to you - steve -- +--- my people are the people of the dessert, ---+ | Steve Edberg [EMAIL PROTECTED] | | University of California, Davis

Re: [PHP] Playing with globals

2004-05-28 Thread Steve Edberg
upposed to work as an alternative to "global" statement ? Not exactly. It allows to you access variables in the global context, but it doesn't make the variable itself global; only the 'global' declaration does that. steve -- +--- my people are the p

RE: [PHP] Newbie Question: Variables on the fly

2004-05-28 Thread Steve Edberg
count($dataPoint). See http://us3.php.net/manual/en/language.variables.external.php for more info on this technique. steve edberg At 01:24 AM 28/05/2004, Dennis Seavers <[EMAIL PROTECTED]> wrote: Maybe others will catch on to your intention, but I think you need to provide a bit mo

Re: [PHP] Efficient way to filter this string

2004-07-22 Thread Steve Edberg
tp://marc.theaimsgroup.com/?l=php-general&r=1&w=2 See http://php.he.net/preg_match and ternary operators in http://us2.php.net/language.operators for more info. - steve -- +------- my people are the people of the dessert, ---+ | Steve Edberg

Re: [PHP] Re: Data request

2007-09-25 Thread Steve Edberg
ost that old (totters off to get some Geritol and scream at the kids on my lawn) steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center

Re: [PHP] two small issues with php mail

2007-11-20 Thread Steve Edberg
he thread :) >It's all just as easy for me to follow. Now... Trimming on the other hand >annoys me... if you trim to much then you have to go back and look up the >e-mail that the info was in :) > >*Gets ready to duck* :) -- +---

Re: [PHP] Rewind foreach loop

2007-11-29 Thread Steve Edberg
7;=>'slurm', 'b'=>'fry', 'c'=>'leela'); $Keys = array_keys($NotJustNumbers); $Count = count($Keys); for ($i=0; $i<$Count; $i++) { $value = $NotJustNumbers[$Keys[$i]]; if ($value == 5 && some_other_test()) {

Re: [PHP] Join question

2007-11-30 Thread Steve Edberg
- my people are the people of the dessert, -------+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL PROTECTED] | | Bioinformatics programming/database/sysadmin (530)754-9127 | +---

Re: [PHP] checkbox unchecked

2007-12-02 Thread Steve Edberg
7;R_b'; $sent = $array_keys($_POST); if($allowed == $sent) { ... do some checking ... } else { echo "Expected input fields do not match!"; } break; How can I force a "n" for not checked in the input field? or how can I solve that? bye &

Re: [PHP] XML Data merging

2008-01-12 Thread Steve Edberg
e's a possibly-useful article: http://www.xmlhack.com/read.php?item=1681 Disclaimer: I've never used any of those tools, so YMMV, IANAL, RTFM, LOL, etc... steve -- +--- my people are the people of the dessert, ---+ | Steve Edberg

Re: [PHP] var_dump() results

2008-01-13 Thread Steve Edberg
Are you sure the real code isn't using mysql_fetch_array() instead of mysql_fetch_row()? steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center

Re: [PHP] how to display photos of the day?

2008-01-29 Thread Steve Edberg
xt to nothing. The cronjob could be written in any language, but since this is a PHP list you'll have to promise to write it in PHP ;) steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis

Re: [PHP] More than one values returned?

2008-02-19 Thread Steve Edberg
return array(1,2); } list($a,$b) = test(); works as above. Works fine with complex arrays as well: function test() { return array(1,array('a','b')); } list($a,$b) = test(); steve -- +--- my people are the people of the dess

Re: [PHP] avoid calling php script

2008-03-12 Thread Steve Edberg
teve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL PROTECTED] | | Bioinformatics programming/database/sysadmin (530)75

Re: [PHP] Single Sign On

2007-06-04 Thread Steve Edberg
/ - useful. steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL PROTECTED] | | Bioinformatics programming/database/sysadmin

Re: [PHP] Swear filter ideas

2007-06-28 Thread Steve Edberg
D] think you [EMAIL PROTECTED] are ??'; } - st&[EMAIL PROTECTED] -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMA

RE: [PHP] Re: Swear filter ideas

2007-06-28 Thread Steve Edberg
Humans are such a strange bunch :) That's why I live with computers and cats - steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center

[PHP] Suggestion re: PHP Brain Teasers

2007-07-05 Thread Steve Edberg
y leads to obfuscation. And one should eschew obfuscation. - steve, eschewing away... -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL

Re: [PHP] Suggestion re: PHP Brain Teasers

2007-07-05 Thread Steve Edberg
At 7:37 PM -0400 7/5/07, Robert Cummings wrote: On Thu, 2007-07-05 at 16:27 -0700, Steve Edberg wrote: Proposal - Perhaps we could separate Brain Teasers, Obfuscated PHP challenges, and what-have-you to a separate mailing list, say php-fun (php-phun? PHPhun?)? Maybe you could also include

Re: [PHP] Rejecting File Upload

2007-08-04 Thread Steve Edberg
/docs.php -steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL PROTECTED] | | Bioinformatics programming/database/sysadmin

Re: [PHP] Not quite OT but maybe close... Help with MySQL

2007-08-08 Thread Steve Edberg
- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL PROTECTED] | | Bioinformatics programming/database/sysadmin (530)754-9127 | +--

Re: [PHP] function does not exist

2006-08-25 Thread Steve Edberg
in that case you would get a different error ('nonexistent method call' or something like that). steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center

Re: [PHP] chown(), chgrp()

2006-09-19 Thread Steve Edberg
-6799 Email: [EMAIL PROTECTED] http://www.informed-sources.com -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL PROTECTED] | | Bioinf

Re: [PHP] Interchange.

2006-10-15 Thread Steve Edberg
-- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL PROTECTED] | | Bioinformatics programming/database/sysadmin (530)754-9127 | +-

Re: [PHP] recommendations for good breacrumbs script

2006-03-11 Thread Steve Edberg
rim($PathBits[$i]); if ($ThisLevel) { $CurrPath .= "/$ThisLevel"; $ThisLevel = preg_replace('/\..*$/U', '', $ThisLevel); $ThisLevel = preg_replace('/ /', ' ', ucwords(preg_repl

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-19 Thread Steve Edberg
ould be strictly about PHP issues. So I have to agree with Per here. Perhaps a PHP-Personal, PHP-Fun or PHP-OT list could be set up for such discussions; heck, I might even subscribe to it. steve -- +--- my people are the people of the dessert, -------

Re: [PHP] [Q] PHP code embedded in html files - What happens?

2004-03-14 Thread Steve Edberg
php3 .php to this AddType application/x-httpd-php3 .php .html See http://www.php.net/manual/en/install.apache.php for more info. steve -- +--- my people are the people of the dessert, -------+ | Steve Edberg [EMAIL PROTECTED] | | Univer

Re: [PHP] word lists

2005-06-20 Thread Steve Edberg
l http://www.htdig.org/ Googling for the phrase "stop word list" also may be useful steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Steve Edberg
Jordan > > > > On Sep 1, 2005, at 8:06 AM, Wong HoWang wrote: > >> Dear all, >> >> I'm trying to do like this but failed: >> >> > ini_set('precision',16); >> echo pi(); >> ?> >> >> How can I get more digits af

Re: [PHP] Help: Get the value of pi up to 200+ digits? -- oops

2005-09-01 Thread Steve Edberg
g to do like this but failed: >> >> > ini_set('precision',16); >> echo pi(); >> ?> >> >> How can I get more digits after . ? >> >> Can anyone help? Thx! >> ++ | Steve Edberg

Re: [PHP] shortest possible check: field is set, integer or 0

2005-12-01 Thread Steve Edberg
\.0*)?/', $_POST['x']) with: if(!is_numeric($_POST['x']) || $_POST['x'] < 0) This would ensure that your value only contains numbers, and that it is greater than zero. Then when you put it into the $_CLEAN array, you can type-cast it as an int (as in

Re: [PHP] shortest possible check: field is set, integer or 0

2005-12-01 Thread Steve Edberg
At 5:30 PM +0100 12/1/05, Jochem Maas wrote: Steve Edberg wrote: Only problem with intval() is that it returns 0 (a valid value) on I knew that. :-) I figured so, but I thought I'd make it explicit for the mailing list... failure, so we need to check for 0 first. Adding more secure c

Re: [PHP] Support between MySQL and PHP

2006-01-29 Thread Steve Edberg
PHP4. For more info, see: http://dev.mysql.com/doc/refman/4.1/en/php.html http://dev.mysql.com/doc/refman/4.1/en/application-password-use.html http://www.php.net/mysql http://www.php.net/mysqli steve -- +--- my people are the people of the dessert, ---+

Re: [PHP] PHP on domain...

2006-01-29 Thread Steve Edberg
ents about sending HTTP HEAD requests. steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL PROTECTED] | | Bioinformatics p

RE: [PHP] VAR and variables

2001-01-29 Thread Steve Edberg
At 10:50 AM + 1/29/01, Tim Ward wrote: > > -Original Message- >> From: Steve Edberg [mailto:[EMAIL PROTECTED]] >> Sent: 25 January 2001 22:02 >> To: Matt; [EMAIL PROTECTED] >> Subject: Re: [PHP] VAR and variables >> >> >> At

Re: [PHP] Server VS Client script validation

2001-01-29 Thread Steve Edberg
to a socket. It's really easy to do that - via telnet to port 80, for example, or via PHP (see the posttohost function at one of the code libraries - see px.sklar.com, or phpbuilder.com, or on of the other resources). - steve -- +--- "They've got a cherry pie there, that

Re: [PHP] Select list with PHP

2001-02-03 Thread Steve Edberg
way I can tell php3 to break it down at "," so I can actually >have a drop down menu > >Thanks ahead: >Gerry Figueroa >-- >Modern Confucius: >Man who run in front of car get tired. >-- >

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Steve Edberg
rote right after 4.0 was out, or so. > >Don't take references like something that will boost your skript speed >to 200%. >Use them only when you need them, and to find out when you actually need >them >check out an article on references at zend.com. > >Now, let me tell

Re: [PHP] How to reference global variables in strings

2001-02-05 Thread Steve Edberg
l/en/language.variables.php -steve -- +--- "They've got a cherry pie there, that'll kill ya" --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric

Re: [PHP] Date Formatting

2001-02-06 Thread Steve Edberg
rns false if it can't figure out what the date string is...you might want to test that. - steve >-- >Richard Crawford (mailto:[EMAIL PROTECTED]) >http://www.mossroot.com AIM Handle: Buffalo2K >"Tomorrow, we'll seize the day and throttle it!" -Calvin -- +--- &quo

RE: [PHP] [Newbie] PHP Variables

2001-02-09 Thread Steve Edberg
t; >> I thought you can pass variables in PHP as in CGI. >> >> http://www.xy.com/index.php?contents=HOME >> >> contents should be available as variable, but it does not seem to >> work. Doe > > anyone has an idea why not? >> -- +--- "T

<    1   2