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
--
+-
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, -------
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
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
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
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
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
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
&
- 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;=>'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()) {
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* :)
--
+---
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
- 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 |
+--
/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
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
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
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
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
/
- 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
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, -
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
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
-- 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 |
+-
-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
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
rim($PathBits[$i]);
if ($ThisLevel) {
$CurrPath .= "/$ThisLevel";
$ThisLevel = preg_replace('/\..*$/U', '', $ThisLevel);
$ThisLevel = preg_replace('/ /', ' ',
ucwords(preg_repl
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
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, ---+
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
\.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
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
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
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
-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
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
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
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
;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
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
d myIncluded.php from the browser. You may have to pay
close attention to the paths of the files, but it is pretty simple
really.
HTH!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
+------
h that.
Any help is appreciated,
Carlton.
--
+----+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis (530)754-9127 |
| Programming/Database/SysAdmin
random characters?
Thank You,
Jason Williard
+----+
| Steve Edberg [EMAIL PROTECTED] |
| Database/Programming/SysAdmin(530)754-9127 |
| University o
s[1]);
echo $count . ' addresses found:';
for($x=0;$x<$count;$x++)
{
$city = trim($matches[1][$x]);
$state = trim($matches[2][$x]);
$zip = trim($matches[3][$x]);
echo "City: $city, State: $state, ZIP: $zip";
}
?>
---John Holmes...
i think it will help
Friendship is always a sweet responsibility, never an opportunity.
HaSeEb IqBaL.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
+----+
o count the number of words in a string?
Untested, but this should work.
$string = "Is there a way to count the number of words in a string?"
$numOfWords = count( explode( " ", $string ));
Chris
--
+--------+
2&unit=BX
> > &short_desc=ENVELOPE,25%COT 24#,IY&wholesaler=US&cost=18.690
>
> gets cut off at the # sign, so $wholesaler and $cost come out empty.
>
> Any suggestions to get around this?
You could use urlencode() and urldecode().
http://www.php.net/manual/en/functio
of obscure ID instead of the data. I
would check out the use of sessions here:
http://www.php.net/manual/en/ref.session.php
-steve
--
++
| Steve Edberg [EMAIL PROTECTED] |
| University
llation is set up to not echo PHP errormessages back
to the screen, that's why you didn't see an error message.
-steve
++
| Steve Edberg [EMAIL PROTECTED] |
| Databa
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
+-
Boy do I REALLY need some coffee...one query was on the production
database, the other was on the development copy. I suppose I should
set the programmer_first_check_database_parameter_you_idiot setting
in php.ini...
Sorry for consuming unnecessary list space.
-steve
I have a query oddit
there was no change in
the numbers. I've never seen anything like this...perhaps I need more
coffee?
Versions:
Apache 1.3.26/php 4.1.2, using mysql client API 3.23.47
MySQL 3.23.47-log
Platform: SunOS 5.8 sun4u sparc SUNW,Sun-Fire-280R
Thanks in advance,
steve
--
+---
COUNT portion of the array? I know the company_name would be
$row['company_name'] and agent_name is $row['agent_name'];
Thanks,
Ed Curtis
--
+----+
| Steve Edberg [EMAIL
ilename is
something like this:
drwxrwxrwx 1 ownergroup 0 Nov 5 23:19 6 fantasy
Notice in this case the filename is "6 fantasy" however $regs[1] returns
only: "fantasy"
Can anyone help me to fix this problem.
Thanks a bunch
--
+---
che
>log file.
>
>This is the entire program:
>http://www.cekkent.net/upload/mp3anal/mp3anal.phps
>
--
++
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis
creating,editing and deleting virtual hosts using
>PHP via a website?? I have already thought of a way but seems a little long
>winded.
>
>Thanks in advance.
--
+--------+
| Steve Edberg
eplace.php
http://www.php.net/manual/en/pcre.pattern.syntax.php
http://www.php.net/manual/en/pcre.pattern.modifiers.php
-steve
++
| Steve Edberg [EMAIL PROTECTED] |
|
.external.php
-steve
>Jeff
>UWG Student
>[EMAIL PROTECTED]
+--------+
| Steve Edberg [EMAIL PROTECTED] |
| Database/Programming/SysAdmin(530)754-9127 |
| Unive
though the set, or (if you
have version >= 4.0.5) you can use array_reduce() in conjunction with the
count() function.
If these values are coming from a database, most databases have aggregate
functions to do sums, averages, etc.
-steve
+-
sponse from the host.
>I do it by fopen each url one by one and save the response to a separated
>file. But it slow!
>I wonder if i can open 10 connnect (or more) in parallel?
>
>Thanks in advance.
>NoWhErEMaN
>
--
+-
e error message. With
>register_globals ON, it works fine.
>
>I thought register_globals only affected session, cookie and get type
>variables? Why is PHP ignoring the variables passed via the URL?
'variables passed via the URL' = 'GET variables'
t; } while ();
> if() {} //(4x)
>}
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--
++
| Steve Edberg
do it this way anymore.
-steve
>
>?? Thanks,
>
>
>Henning Sittler
>www.inscriber.com
>
--
++
| Steve Edberg [EMAIL PROTECTED] |
| University of California, D
an't find the php-gd.so on my computer.
>> >
>> > Anybody can help?
>>
>> Looks like the problem is that you haven't installed GD.
>>
> > Dave
>
--
++
| Steve Edber
) and convert it to HEX values?
>
>Thanx...
>
--
+--------+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis (530)754-9127 |
| Programming/Database
thing.
-steve
--
+----+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis (530)754-9127 |
| Programming/Database/SysAdmin http://pgfs
feature,
and retrieve only the associated indexes (the behavior you normally
want), you can use
mysql_fetch_array($result, MYSQL_ASSOC);
Incidentally, I just learned something here myself; there's a
relatively new (>= version 4.0.3) function mysql_fetch_assoc() wh
rses($session[id]))
{
print "", $Row['C.CourseName'];
}
-steve
--
+----+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis
ql-fetch-array.php
-steve
>I'm hoping someone will spot my dumb mistake. Thanks very much for any help
>at all on this.
>
>Brad
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--
+---
rough the credits
http://www.php.net/credits.php
and count how many times his name appears. In short, PHP sprang from his
brain. Now, it springs from many brains.
-steve
+--------+
| Steve Edberg
Subject: [PHP] Making varibles (more than one) with a function.
>> > I am aware that return can return strings but is their a set global or a
>> > function similar to return?
>>
>> hi there!,
>> There sure is, it's called global.
>&
;>--
>--
>
>If You want to buy computer parts, see the reviews at:
>http://www.cnet.com/
>**OR EVEN BETTER COMPILATIONS**!!
>http://sysopt.earthweb.com/userreviews/products/
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.n
--
>Martín Marqués |[EMAIL PROTECTED]
>Programador, Administrador, DBA | Centro de Telematica
>Universidad Nacional
> del Litoral
>-
--
+-
users
>> values I'd rather just use one memory space for all users.
>>
>> Thanks
>>
>> Roger Ramirez
>> Web Developer
> > LifeFiles.com Inc.
>>
--
++
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis
with it. And, I think there's some
nominal license fee to use it on Windows.
Thus endeth my spiel -
- steve edberg
--
++
| Steve Edberg [EMAIL PROTECTED] |
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
++
| Steve Edberg [EMAIL PROTECTED] |
| Database/Programming/SysAdmin(530)754-9127 |
|
ager [EMAIL PROTECTED]
>800-994-6364
>www.webintellects.com
>
>
--
+--------+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis (530)754-9127 |
range.
>
>Thanks
+--------+
| Steve Edberg [EMAIL PROTECTED] |
| Database/Programming/SysAdmin(530)754-9127 |
| University of California, Davis http://pgfsun.ucdavis.edu/ |
+-- Gort, Klaatu barada nikto! --+
am looking for service that is free, if possible, since this project is not
>for commercial at all (academic purposes).
>
>Any information on this will be greatly appreciated.
>
>Thanks.
>Reuben D. Budiardja
>
--
+-------
a5$fa7d60e0$0401a8c0@philip">news:003d01c1a6a5$fa7d60e0$0401a8c0@philip...
>Any Ideas how I can remove !@#$%^&*()_+=-';:"/.,<>? charactors from a
>string?
>
>Philip J. Newman
>Philip's Domain - Internet Project.
>http://www.philips
more
>than halfway down).
>
>
>Erik
>
>>
>>>Actually, using the [] syntax is deprecated - using {} is the new way
>>>- but I'm a creature of habit...
>>>
>
>
--
+
e syntax read??
>>
>> Thnx,
>>
>> sands
>>
>
>Check out explode()
>www.php.net/manual/en/function.explode.php
>
>- --
>
>Nick Wilson
>
>Tel: +45 3325 0688
>Fax: +45 3325 0677
>Web: www.explodingnet.com
>
--
+---
an out of
>time
> > on that line. BTW '}' is the closing of an if statement so it isnt stuck
>in
> > a loop. And when I go to the page I make sure to use the same querystring
> > that the user sent.
> > >
> > > Another thought, is the php engine
rote:
>
> > I would like to format numbers to be a fixed width.
> >
> > I want all numbers to be 2 characters in width to the left of the
> > decimal point.
> >
> > 1 should be 01
> > 2 should be 02
> > 3 should be 03
> >
> > How can I do this
hnologies Inc.
>Homepage : http://www.abraxastech.com
>Email : [EMAIL PROTECTED]
>Tel : 91-4546512/4522124
>*******
>
--
++
| Steve Edberg [EMAIL PROTECTED] |
| University of Californi
e regsiter.\n";
>echo "Membership";
>exit;
>}
>else echo "welcome, $username!";
>
>
>Now for some strange reasons it tries to access my web direcorty
>that does not contain any file, and i get the 404 page not found
>error.
>
>any
;thanks in advance.
>
--
+--------+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis (530)754-9127 |
| Programming/Database/SysAdmin http
the last id but to no avail.
>
>Thanks
>Yoed
>
--
+----+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis (530)754-9127 |
| Programm
by a simple regular expression call,
>but I'm no pro with them yet.
>
>Any help?
>
>Thanks,
>Ken
>[EMAIL PROTECTED]
>
--
++
| Steve Edberg [EMAIL PROTECTED
)?
>
>Thanks.
>
--
+--------+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis (530)754-9127 |
| Programming/Database/SysAdmin http
#x27;track_vars' on to enable
$HTTP_POST_VARS and other $HTTP_xxx_VARS arrays. If that's the case -
and you can't upgrade immediately - you need to turn track_vars on in
httpd.conf, php.ini, or .htaccess (whatever's appropriate in your
setup).
Hope that helps -
- steve e
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
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
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
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? -------
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
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
;> Brandon Orther
>> WebIntellects Design/Development Manager
>> [EMAIL PROTECTED]
>> 800-994-6364
>> www.webintellects.com
>>
> >
>>
--
+ Open source questions? +
| 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 |
-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
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]
1 - 100 of 167 matches
Mail list logo