RE: [PHP] Re: Arrays in form

2001-10-21 Thread Brian Tanner

You don't need to use javascript unless you're lookin for select all
functionality.

I think what you are looking for might just be to have many checkboxes that
can be selected at a time?

You can look in the manual, but the trick is just to name your form fields
with a [] at the end.  So, it would be like

input type=checkbox name=messageid[] ... 

That will ensure that PHP takes all checked messageid boxes and sticks
them in an array for ya!  Hope that helps!

Brian Tanner
Project Manager
Zaam Internet Solutions
Toll Free: 1-866-225-2675
[EMAIL PROTECTED]
http://www.zaam.com

-Original Message-
From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]]
Sent: October 21, 2001 10:50 PM
To:
Subject: [PHP] Re: Arrays in form


Use JavaScript.

Read PHP Manul if you need to pass array form vars.
There is a section for that.

Srinivasan ranganathan wrote:

 Hi all

 How can i implement a hotmail-inbox like checkbox
 functionality?

 thanks in adv
 Regards
 Srinivasan Ranganathan

--
Yasuo Ohgaki


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] The future of PHP

2001-08-29 Thread Brian Tanner

Hey, you guys keep coming to Calgary , Alberta, Canada.

Stop by Winnipeg, Manitoba, Canada!

Brian Tanner
Project Manager
Zaam Internet Solutions
Toll Free: 1-866-225-2675
[EMAIL PROTECTED]
http://www.zaam.com

-Original Message-
From: pierre-yves [mailto:[EMAIL PROTECTED]]
Sent: August 29, 2001 11:04 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] The future of PHP


Grrr !! same for me, I never knew you were in Montreal,
 - Linux Expo - Montreal, Canada

Now I see why the calandar is so useful on php.net !!

py
p.s. in june I was probably too busy at the jazz festival tho :)


- Original Message -
From: Jeff Lewis [EMAIL PROTECTED]
To: Rasmus Lerdorf [EMAIL PROTECTED]; Manuel Lemos [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 1:25 PM
Subject: Re: [PHP] The future of PHP


 Damn, I wish I had read that thre was this event in Toronto, I would have
 liked to attend! :)

   - Linux User Group in Toronto, Canada

 I agree, suggestion and constructive criticism are fine but lets not start
 attacking the guys who have put in countless hours to make PHP what it is
 today.  I'm sure they will take in suggestions and do as much as humanly
 possible to keep everyone happy ;)

  telling us that we are sitting on our hands watching the world pass us
by
  without doing anything at all is rather insulting.  Especially given the
  amount of time I have personally spent sitting on crummy airplanes in
the
  past year or two for the sole purpose of promoting PHP.
 
  -Rasmus


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: The future of PHP -- accessory libraries

2001-08-29 Thread Brian Tanner

Great idea.  I think a section discussing configuration options, suggested
configurations, and general info for ISPS would be great.

I just got a dedicated server and will be doing web hosting, and I think it
would be extremely helpful.

(if anyone needs cheap hosting, let me know -- I have tons of bandwidth I
need to use up to make my money back)

Brian Tanner
Project Manager
Zaam Internet Solutions
Toll Free: 1-866-225-2675
[EMAIL PROTECTED]
http://www.zaam.com

-Original Message-
From: Richard Heyes [mailto:[EMAIL PROTECTED]]
Sent: August 29, 2001 1:53 PM
To: Rasmus Lerdorf
Cc: PHP General
Subject: RE: [PHP] Re: The future of PHP -- accessory libraries


 So it looks like this is mostly a documentation issue.  We have not done a
 good job educating the ISPs out there.  But they should have been able to
 figure this out by looking at how PHP is packaged by the various
 distribution vendours.

Perhaps a section in the manual dedicated to ISP related information?
--
Richard Heyes



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: PHP secure

2001-08-24 Thread Brian Tanner

Zend's compiler doesn't really cost that much.  If you look at it that way
yes.

But if you get a developer membership to Zend ($50 a month), you get the
encoder as long as you have a membership (min 1 year).

So really, you can get the encoder for $600



-Original Message-
From: J Smith [mailto:[EMAIL PROTECTED]]
Sent: August 24, 2001 5:28 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: PHP secure


If you can't trust your clients with the source code, what are you telling
your clients?

J

Erik H. Mathy wrote:

   Encode (or compile) the source.

   Zend's compiler costs 2400 dollars. At this cost is better to
 release your code on an open source license ;-)

 The open source license is only as effective as your ability to hire a
 lawyer to enforce it. ;)

 It also depends on:

 a.) How much you're charging for the product
 b.) If you feel confident in your ability to police your clients.

 My .02 cents, IMHO, etc, etc...
 - Erik


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Help with Encoding/Decoding data for payment Gateways

2001-08-20 Thread Brian Tanner

I'm writing a script to post/validate payments to www.clickbank.com 
They provide a method for passing encrypted data to them, and if you get it
back on your thank you page, you know 100% that the customer has paid.
Unfortunately, the validation routines are only available in Perl and C...
and unfortunately, I'm not that proficient in either, at least not enough to
duplicate it in PHP.

Could someone tell me what is happening here, and if there is a good way in
PHP to duplicate it.  I run into this type of thing often with payment
processors, and am forced to use less good methods

sub valid
 { ### Copyright Keynetics Inc. Patents pending.
my($a,$b,$c,$h,$i,$l,$q,$w,$x,$y,$z,@s,@v);

   ###
   $a='YOUR_SECRET_KEY_GOES_HERE';
   ###

   $q=''.substr($ENV{'QUERY_STRING'},0,256);
   $q=~/\Wseed=(\w+)/; $b=$1;
   $q=~/\Wcbpop=(\w+)/; $c=$1;

   return 0 unless $a$b$c;

   $h=0x8000; $l=0x7fff;
   $q=''; $w=uc $a $b; $x=$y=$z=17;
   @v=unpack(C*,$w); $n=1+$#v;
   for($i=0;$i256;$i++)
   { $w=(($x$l)+($y$l))^(($x^$y)$h);
 $w=($w$z)|($w(32-$z));
 $w=(($w$l)+$v[$i%$n])^($w$h);
 $s[$i7]+=$w31; $z=$y31; $y=$x; $x=$w;
   }

   for ($i=0;$i8;$i++)
   { $q.=substr('0123456789BCDEFGHJKLMNPQRSTVWXYZ',$s[$i]31,1); }

   return $c eq $q;
 }

Any help/pointers to resources would be greatly appreciated. Thanks in
advance.

-Brian Tanner


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Numerical refs to assoc array suddenly undefined offset??

2001-06-30 Thread Brian Tanner

No.. if you are referencing $my_arr['foo'] == then $my_array[0] will not be
set.  I think it used to work that way, but it stopped.  If you want to
print it out... use $my_array['foo']

If you don't need the associative referencing, you can just use $my_array[],
which will set $my_array[0]

If you want to print out your array elements in order, use:

while (list ($key, $val) = each ($my_array)) {
echo $key = $valbr;
}

Brian Tanner

Project Manager

Zaam Internet Solutions

Toll Free: 1-866-225-2675

[EMAIL PROTECTED]

http://www.zaam.com





CC Zona [EMAIL PROTECTED] wrote in message
9hico0$l4l$[EMAIL PROTECTED]">news:9hico0$l4l$[EMAIL PROTECTED]...
 This is weird.  Did I only imagine that PHP allows numerical referencing
of
 associative array elements?  'Cuz suddenly the parser is calling all the
 numerical references undefined.

 ex.
$my_arr['foo']='first';
$my_arr['bar']='second';
$my_arr['more']='third';

echo p . $my_arr[0] . /p\n;
echo p . $my_arr[1] . /p\n;
echo p . $my_arr[2] . /p\n;

for($i=0;$icount($my_arr);$i++)
   {
   echo p . $my_arr[$i] . /p\n;
   }

 ex.
$my_arr=array(
'foo'='first',
'bar'='second',
'more'='third'
);

echo p . $my_arr[0] . /p\n;
echo p . $my_arr[1] . /p\n;
echo p . $my_arr[2] . /p\n;

for($i=0;$icount($my_arr);$i++)
   {
   echo p . $my_arr[$i] . /p\n;
   }

 The above spits out nothing but a page full of undefined offset errors.
 I can't find anything in the arrays chapter, nor in the array function
 reference, to explain why the numerical referencing would've stopped
 working.  This *should* work, right?  So why would it not be working now?

 --
 CC

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Insight into Object Serialization and Loading

2001-06-29 Thread Brian Tanner

Quick question to the powers that be. With the current implementation of
objects and such, how flexible is unserialize and serialize.

I am currently building a large object oriented web application, and I have
a pile of moduls and definition files stored to disk as serialized objects.
Just wondering how much flexibility I have with changing class definitions
(adding/removing member variables).  If I add 5 variables to the class
definitions will my app fail terrible when unserializing? How about if I
get rid of some variables from the class definition.

Or, when unserializing, does PHP just match up whatever variables it can,
and then it doesn't worry about the rest?



Insight appreciated.



-Brian Tanner




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Arranging lists

2001-04-30 Thread Brian Tanner

You'll have to assign some sort of order to them using an integer tag column
or something similar... and then order by that when you select

That's my best suggestion.

-Brian
http://www.zaam.com

Peter Houchin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 I've got a select box that gets vaules  from a DB, now I want these value
to be displayed in a certain order that's NOT relating to their id nor in
alphabetical order .. can some one suggest a way this might be done??

 At present my select box looks like this :

 form name=select method=post action=machine.php
 select name=system size=1
   ?php
   $query =SELECT DISTINCT system FROM 1machine ORDER BY system;
   $result = mysql_query($query);

   while($row = mysql_fetch_array($result)){
 echo 'option value='.$row[system].''.$row[system].'/optionbr';
   }
 ?
 /select
 input type=submit name=select value=select
 /form

 Peter Houchin
 [EMAIL PROTECTED]
 =
  _  __   /\
 /_/_/_\/  |_/  \
/_/_/___  __  __   __  / \
\_/_/_\  /_/ /_/ /_/  /_/  \   _ /
  ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
  \_//_/_/ /_/_/_/ /_/ \/_/v
     
 /_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/_/_ _/_/ __  __   __  /_/   __ __
   /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
  /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
 /_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
 =
 Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
 * We rent the dot in .COM!  **




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]