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]
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...
>
uld all be in
>> >lowercase
>> >
>> > $String = ucwords(strtolower(ltrim($String))); # LINE A
>> >
>> > foreach ($ExceptionList as $Word)
>> > {
>> > $String = eregi_replace("[[:space:]]+$Word[[:sp
>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? ---
gt;< <>< <>< God is our provider ><> ><> ><> ><>
>http://www.body-builders.org
>
--
+ Open source questions? +
| Steve Edberg University of California, Davis |
| [E
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
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]
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
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
.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]
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
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]
-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
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 |
;> Brandon Orther
>> WebIntellects Design/Development Manager
>> [EMAIL PROTECTED]
>> 800-994-6364
>> www.webintellects.com
>>
> >
>>
--
+ Open source questions? +
| 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
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
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? -------
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
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
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
-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
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
--
+-
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
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
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, -
;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
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
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
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
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
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* :)
--
+---
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()) {
- 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 |
+---
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
&
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
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
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
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
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
/
- 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
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
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
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
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
/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
- 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 |
+--
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
-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
-- 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 |
+-
rim($PathBits[$i]);
if ($ThisLevel) {
$CurrPath .= "/$ThisLevel";
$ThisLevel = preg_replace('/\..*$/U', '', $ThisLevel);
$ThisLevel = preg_replace('/ /', ' ',
ucwords(preg_repl
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, -------
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
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
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
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
\.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
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
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, ---+
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
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
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
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.
>--
>
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
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
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
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
101 - 167 of 167 matches
Mail list logo