Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-03 Thread Jochem Maas
Miles Thompson wrote: At 03:51 PM 5/3/2006, Phillip S. Baker wrote: Greetings Gents, ... However - why do you think paging an article improves readability? What it does do is control the amount of text you display on a page so you can profitably surround it with advertising.

Re: [PHP] List of sessions

2006-05-03 Thread Joe Wollard
If you store your sessions in a database then your could gain a little mode control over your session, but I think what you're asking is if there's a way to tell if a user has closed the browser thus killing the session on their side. If that's what you're asking then the answer is not going to li

Re: [PHP] List of sessions

2006-05-03 Thread Tony Aldrich
Well, I mean visitors of site. They can open it in several windows or in several browsers. I understand that each browser on a machine will be a session (in simple explanation). And for all of them I create some info in database. Then they close browser. I must clean up unused info. That's why I w

Re: [PHP] php script fails when run from cron

2006-05-03 Thread Chris
blackwater dev wrote: Chris, The double php thing is very likely as it is a box from my host and I installed php5 so I think php4 is on there somewhere as well without mssql support. I am simply running it like 15 21 * * * php /usr/local/apache2/htdocs/import.php How can I tell it which one

Re: [PHP] php script fails when run from cron

2006-05-03 Thread Chris
blackwater dev wrote: I have a script which runs fine from the command line but when I try to run it via cron, it seems to fail when the db class is instatiated, here is some code: $yesterday = date("Y-m-d",mktime(0, 0, 0, date("m") , date("d")-1, date("Y"))); $file=fopen("/usr/local/apache2

[PHP] php script fails when run from cron

2006-05-03 Thread blackwater dev
I have a script which runs fine from the command line but when I try to run it via cron, it seems to fail when the db class is instatiated, here is some code: $yesterday = date("Y-m-d",mktime(0, 0, 0, date("m") , date("d")-1, date("Y"))); $file=fopen("/usr/local/apache2/htdocs/core/logs/import.

Re: [PHP] Portfolio suggestions

2006-05-03 Thread Paul Novitski
At 03:24 PM 5/3/2006, Rory Browne wrote: It's just struck me, that even though I've been using PHP for six years, Most of my code, has either been integrated into specialised systems, or for random administrative job, I've got very little in the line of a portfolio. This is such a great challe

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-03 Thread Chris
Phillip S. Baker wrote: Greetings Gents, I have an interesting problem I would like some ideas on for a solution. I cannot seem to find any code examples on the net, though I might not be looking in the right place really. I have some articles stored in a MySQL DB. What I want is if the artic

Re: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Mark Charette
Chris W. Parker wrote: I'm definitely open to suggestions on how we can minimize our customers' risk At least run GPG on the data immediately, keep the private key somewhere other than on the server, and decrypt only for the moment its needed. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Portfolio suggestions

2006-05-03 Thread Chris
Rory Browne wrote: It's just struck me, that even though I've been using PHP for six years, Most of my code, has either been integrated into specialised systems, or for random administrative job, I've got very little in the line of a portfolio. I'd like to rectify this, but I can't think of a

Re: [PHP] PHP Upgrade Question

2006-05-03 Thread Eric Butera
Ok so I can't find apxs on the server at all, even though the 4.3.4phpinfo claims to have been configured with --with-apxs2=/usr/sbin/apxs2-prefork. I did some search via google and I reconfigured using --enable-cli and --disable-cgi but I still had to use --with-apache2=/usr/sbin/httpd2 because

Re: [PHP] Portfolio suggestions

2006-05-03 Thread Robert Cummings
On Wed, 2006-05-03 at 18:24, Rory Browne wrote: > It's just struck me, that even though I've been using PHP for six years, > Most of my code, has either been integrated into specialised systems, or for > random administrative job, I've got very little in the line of a portfolio. > > I'd like to re

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-03 Thread Miles Thompson
At 03:51 PM 5/3/2006, Phillip S. Baker wrote: Greetings Gents, I have an interesting problem I would like some ideas on for a solution. I cannot seem to find any code examples on the net, though I might not be looking in the right place really. I have some articles stored in a MySQL DB. What

[PHP] idn-functions in PHP

2006-05-03 Thread Marten Lehmann
Hello, is there any function in PHP which binds to libidn? I found only a PEAR-project, but PEAR-projects are often beta and not as stable as PHP-builtin functions. Regards Marten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I need to Index and to research files PDF

2006-05-03 Thread Jochem Maas
Carlos Augusto Falcão da Silva wrote: I'm so sorry, but I didn't notice that it had duplicated the message. :-( no problem :-) there are worse crimes. Thank you for help let us know what your solution ends up being - it might help others, I'd be especially interested what your experiences a

RE: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Chris W. Parker
Edward Vermillion on Wednesday, May 03, 2006 4:15 PM said: > Ahh!! *thud* > > Count me in the heart attack group. So would it be a reasonable risk > if it was *your* cc # that was stolen? And do your customers *know* > that you're handling their sensitive in

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-03 Thread Jochem Maas
Edward Vermillion wrote: Or just break the "page" up into sections and grab subsequent sections from the DB. (?) that, or any number of other ideas. but I know from experience that offering seperate records for each section generally leads to a less intuitive (read: easy to use) editing inter

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-03 Thread Edward Vermillion
Or just break the "page" up into sections and grab subsequent sections from the DB. (?) That way you could easily code in a 'jump to page 3 from page 6' type function, and your still just grabbing data and spitting it out with out worrying about sessions getting mangled or parsing for html

Re: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Edward Vermillion
On May 3, 2006, at 5:15 PM, Chris W. Parker wrote: We don't get a lot of orders* so at worst if the db were stolen there'd be possibly 5-10 cc numbers in there. Some people (possibly Richard) would have a heart attack to hear something like that but we've decided that it's a reasonable r

Re: [PHP] PHP Upgrade Question

2006-05-03 Thread Tom Ray
On 05.03.2006 at 16:46:21, Eric Butera <[EMAIL PROTECTED]> wrote: > On 5/3/06, Tom Ray <[EMAIL PROTECTED]> wrote: > > > > Hey all- > > > > I'm running a SuSE 9.1 box that was built from the RPMs from the CD with > > Apache2.0 and PHP 4.3.4. I've made modifications to the server over the > > last >

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-03 Thread Jochem Maas
Phillip S. Baker wrote: Greetings Gents, I have an interesting problem I would like some ideas on for a solution. I was going to make a comment about the use of 'interesting' but thought better of it. ;-) I cannot seem to find any code examples on the net, though I might not be looking in th

[PHP] Portfolio suggestions

2006-05-03 Thread Rory Browne
It's just struck me, that even though I've been using PHP for six years, Most of my code, has either been integrated into specialised systems, or for random administrative job, I've got very little in the line of a portfolio. I'd like to rectify this, but I can't think of a suitable project. I'd

RE: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Chris W. Parker
Steve on Friday, April 21, 2006 5:58 PM said: > So everyone's aware, I have NO intention of storing credit card #'s. I > don't see why anyone needs to.. especially after reading Richard's > past posts in the archive. Perhaps if you don't use a merchant account

RE: [PHP] Paged Results Set in MySQL DB with one result

2006-05-03 Thread Jay Blanchard
[snip] Does anyone have any ideas?? [/snip] Quite frankly, yes. Question is, how many words do you want to show up on a 'page'? Is the design liquid or rigid? A basic formula (pseudo-code, will not actually work in the PHP parser); Select article body from database. Place all of the words in a

[PHP] Paged Results Set in MySQL DB with one result

2006-05-03 Thread Phillip S. Baker
Greetings Gents, I have an interesting problem I would like some ideas on for a solution. I cannot seem to find any code examples on the net, though I might not be looking in the right place really. I have some articles stored in a MySQL DB. What I want is if the article is above a certain len

Re: [PHP] mod_rewrite help

2006-05-03 Thread Stephen Lake
BOL Now I wish I hadn't slept through Math Class in school "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John Nichel wrote: >> Jay Blanchard wrote: >> >> > > ... > >> >> How much wood could a woodchuck chuck if a woodchuck could chuck wood? >> >> While viewing a php

Re: [PHP] PHP Upgrade Question

2006-05-03 Thread Tom Ray
On 05.03.2006 at 16:46:21, Eric Butera <[EMAIL PROTECTED]> wrote: > On 5/3/06, Tom Ray <[EMAIL PROTECTED]> wrote: > > > > Hey all- > > > > I'm running a SuSE 9.1 box that was built from the RPMs from the CD with > > Apache2.0 and PHP 4.3.4. I've made modifications to the server over the > > last >

Re: [PHP] Sanity checker?

2006-05-03 Thread Ólafur Waage
How would you define ie. a sane case or elseif statment without knowing more about the code, how it is executed or included files that effect the file. File that the checker possibly doesnt have access to. Björn Bartels wrote: Hi, there... agreeing with other posts, i'd say this could "easi

Re: [PHP] Sanity checker?

2006-05-03 Thread Björn Bartels
:) ... i might have taken a look ther first... http://www.iso.org/iso/en/CatalogueListPage.CatalogueList?ICS1=35&ICS2=80&ICS3=&scopelist= cheers, bb >Hi, there... > >agreeing with other posts, i'd say this could "easily" be done >by quality management. don't know if there are any recommended >i

Re: [PHP] PHP Upgrade Question

2006-05-03 Thread Eric Butera
On 5/3/06, Tom Ray <[EMAIL PROTECTED]> wrote: Hey all- I'm running a SuSE 9.1 box that was built from the RPMs from the CD with Apache2.0 and PHP 4.3.4. I've made modifications to the server over the last year without using the CD's and justing installing from the source. However, I just instal

Re: [PHP] Sanity checker?

2006-05-03 Thread Björn Bartels
Hi, there... agreeing with other posts, i'd say this could "easily" be done by quality management. don't know if there are any recommended international standards [ www.iso.org ] , but i think this would be a good start. worst case, you will have to define those rules all by yourself. as far as i

Re: [PHP] mod_rewrite help

2006-05-03 Thread Jochem Maas
John Nichel wrote: Jay Blanchard wrote: ... How much wood could a woodchuck chuck if a woodchuck could chuck wood? While viewing a php web site that is. this might help in the calculation: http://www.netsoc.tcd.ie/~allah/backup/cgi-bin/woodchuck.php :-) -- PHP General Mailing List (h

Re: [PHP] mod_rewrite help

2006-05-03 Thread Jochem Maas
lol - I want a robe too :-) blue will be fine. Anthony Ettinger wrote: [aha moment] I finally get it. PHP developers are the smartest people on the planet and therefore we know and use everything. JavaScript, Java, C++, SQL, network management, Apache internals, women and even PHP. That i

[PHP] PHP Upgrade Question

2006-05-03 Thread Tom Ray
Hey all- I'm running a SuSE 9.1 box that was built from the RPMs from the CD with Apache2.0 and PHP 4.3.4. I've made modifications to the server over the last year without using the CD's and justing installing from the source. However, I just installed PHP 4.4.2 and I used all the same path calls

Re: [PHP] Sanity checker?

2006-05-03 Thread Joe Henry
On Tuesday 02 May 2006 6:14 pm, Ezra Nugroho wrote: > Does anyone know of any tools to test the sanity of your php code? This sounds an awful lot like the Halting Problem to me, which isn't solvable. http://en.wikipedia.org/wiki/Halting_Problem -- Joe Henry www.celebrityaccess.com [EMAIL PROTECT

Re: [PHP] Sanity checker?

2006-05-03 Thread Wolf
You did not get responses (even many funny ones) because what is considered SANE by your standards may not necessarily be SANE by mine. Personally I'd jump from a plane with a chute and back-up chute, but ask my dad and he says I am nuts! Most of us tend to use coding standards we have learned eit

Re: [PHP] A error with PHP and CakePHP

2006-05-03 Thread nicolas figaro
Pham Huu Le Quoc Phuc a écrit : Hi! hi, you don't need to send the mail to me + copy to the list. I have a error, please see attach image file I use php 5.0, CakePHP and IIS, Windows XP, IE 6.0 Please help me. 1st : read the html source of your page. 2nd : find in the source the code th

RE: [PHP] mod_rewrite help

2006-05-03 Thread Jay Blanchard
[snip] > [snip] > How much wood could a woodchuck chuck if a woodchuck could chuck wood? > > While viewing a php web site that is. > [/snip] > > If a woodchuck could chuck wood he (or she) would chuck as much wood as > he (or she) could chuck while viewing a php web site. H, I dunno if it's

Re: [PHP] Sanity checker?

2006-05-03 Thread Satyam
- Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> Ezra Nugroho on Wednesday, May 03, 2006 10:51 AM said: Well, Reservoir, I envision a tool that would audit your php code, and tell you if your code is good or not, if it has scaling iss

Re: [PHP] Sanity checker?

2006-05-03 Thread Martin Alterisio \"El Hombre Gris\"
Ezra Nugroho escribió: Well, Since my original post failed to generate reasonable feedback, not even a successful kick at people's funny bone or a flame, let me restate my question with a story. Php reduces the barrier to web development quite a bit, such that less technical people can jump in

RE: [PHP] mod_rewrite help

2006-05-03 Thread Robert Cummings
On Wed, 2006-05-03 at 15:36, Jay Blanchard wrote: > [snip] > How much wood could a woodchuck chuck if a woodchuck could chuck wood? > > While viewing a php web site that is. > [/snip] > > If a woodchuck could chuck wood he (or she) would chuck as much wood as > he (or she) could chuck while viewi

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Satyam
- Original Message - From: "Rory McKinley" <[EMAIL PROTECTED]> To: Sent: Wednesday, May 03, 2006 8:32 PM Subject: Re: [PHP] Avoiding user refresh of pages with forms Brad Bonkoski wrote: Is there a way to key off of the data inserted? Like some unique value or set of values that y

RE: [PHP] mod_rewrite help

2006-05-03 Thread Jay Blanchard
[snip] How much wood could a woodchuck chuck if a woodchuck could chuck wood? While viewing a php web site that is. [/snip] If a woodchuck could chuck wood he (or she) would chuck as much wood as he (or she) could chuck while viewing a php web site. Told you. -- PHP General Mailing List (http:

Re: [PHP] mod_rewrite help

2006-05-03 Thread John Nichel
Jay Blanchard wrote: [aha moment] I finally get it. PHP developers are the smartest people on the planet and therefore we know and use everything. JavaScript, Java, C++, SQL, network management, Apache internals, women and even PHP. That is why people come on this list to ask questions totally u

Re: [PHP] mod_rewrite help

2006-05-03 Thread Anthony Ettinger
On 5/3/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] I am trying to create a simply rule so that when someone goes to: mysite.com/users/1 They are redirected to: mysite.com/users/index.php?uid=1 But am a bit lost looking through all the docs. I know people do this all the time so am lo

RE: [PHP] Sanity checker?

2006-05-03 Thread Chris W. Parker
Ezra Nugroho on Wednesday, May 03, 2006 10:51 AM said: > Well, Reservoir, > I envision a tool that would audit your php code, and tell you if your > code is good or not, if it has scaling issues, etc, etc. Basically it > tells if your php code is "sane" or not. Is

[PHP] Re: printf and number_format rounding

2006-05-03 Thread Dan Baker
"Duffy, Scott E" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Are printf and number_format supposed to round? echo ($hcount-$lcount)/$hilow." "; echo number_format(($hcount-$lcount)/$hilow,2,'.',''); 0.208333 0.21 0.145833 0.15 0.17 0.17 0.0833

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Rory McKinley
Brad Bonkoski wrote: Is there a way to key off of the data inserted? Like some unique value or set of values that you can do a quick lookup before you insert/update/delete again... Or you could venture into an AJAX style of submission keyed off of a button click then a refresh to a 'report' pa

RE: [PHP] mod_rewrite help

2006-05-03 Thread Jay Blanchard
[snip] I am trying to create a simply rule so that when someone goes to: mysite.com/users/1 They are redirected to: mysite.com/users/index.php?uid=1 But am a bit lost looking through all the docs. I know people do this all the time so am looking for some help. [/snip] mod_rewrite: A Beginner'

Re: [PHP] array insights

2006-05-03 Thread Robert Cummings
On Wed, 2006-05-03 at 13:42, Jason Gerfen wrote: > Dave Goodchild wrote: > > > use: > > > > $new_array = array_chunk($input_array, 3)); > > > Thanks, that is just the array function I was looking for. Really? Wow! That'll produce nothing like the example you said you wanted. *lol* Cheers, Rob. -

Re: [PHP] mod_rewrite help

2006-05-03 Thread John Nichel
blackwater dev wrote: Hello all, I am trying to create a simply rule so that when someone goes to: mysite.com/users/1 They are redirected to: mysite.com/users/index.php?uid=1 But am a bit lost looking through all the docs. I know people do this all the time so am looking for some help. h

[PHP] mod_rewrite help

2006-05-03 Thread blackwater dev
Hello all, I am trying to create a simply rule so that when someone goes to: mysite.com/users/1 They are redirected to: mysite.com/users/index.php?uid=1 But am a bit lost looking through all the docs. I know people do this all the time so am looking for some help. Thanks!

Re: [PHP] Sanity checker?

2006-05-03 Thread Ezra Nugroho
Well, Since my original post failed to generate reasonable feedback, not even a successful kick at people's funny bone or a flame, let me restate my question with a story. Php reduces the barrier to web development quite a bit, such that less technical people can jump in really easily. In one sid

Re: [PHP] array insights

2006-05-03 Thread Jason Gerfen
Dave Goodchild wrote: use: $new_array = array_chunk($input_array, 3)); Thanks, that is just the array function I was looking for. this will split your original array into a number of arrays with three elements in each and trash the original keys. If you want to preserve the keys pass a thir

Re: [PHP] array insights

2006-05-03 Thread Robert Cummings
On Wed, 2006-05-03 at 13:27, Dave Goodchild wrote: > use: > > $new_array = array_chunk($input_array, 3)); > > this will split your original array into a number of arrays with three > elements in each and trash the original keys. If you want to preserve the > keys pass a third paramater (true). Ho

Re: [PHP] array insights

2006-05-03 Thread Robert Cummings
On Wed, 2006-05-03 at 13:27, Jason Gerfen wrote: > I am looking for some information on how to do this the correct way, > here is the data I am working with: > > Array > ( > [hostname-0] => hostname > [mac-0] => 00:0a:b3:aa:00:5d > [ip-0] => 192.168.0.1 > [subnet] => MMC-Subnet >

Re: [PHP] array insights

2006-05-03 Thread Dave Goodchild
use: $new_array = array_chunk($input_array, 3)); this will split your original array into a number of arrays with three elements in each and trash the original keys. If you want to preserve the keys pass a third paramater (true). Hope this helps. On 03/05/06, Jason Gerfen <[EMAIL PROTECTED]>

[PHP] printf and number_format rounding

2006-05-03 Thread Duffy, Scott E
Are printf and number_format supposed to round? echo ($hcount-$lcount)/$hilow." "; echo number_format(($hcount-$lcount)/$hilow,2,'.',''); 0.208333 0.21 0.145833 0.15 0.17 0.17 0.083 0.08 Printf ("%.2f",($hcount-$lcount)/$

[PHP] array insights

2006-05-03 Thread Jason Gerfen
I am looking for some information on how to do this the correct way, here is the data I am working with: Array ( [hostname-0] => hostname [mac-0] => 00:0a:b3:aa:00:5d [ip-0] => 192.168.0.1 [subnet] => MMC-Subnet [group] => MMC-PXE [hostname-1] => tester01 [mac-1] => 00:09:02

RE: [PHP] PHP-Jabber

2006-05-03 Thread ray . hauge
I've been using this library for a while. I don't need to do much, so I don't know first hand how well all the features work, but it definitely will get you a list of people online and let you send messages to them. http://cjphp.netflint.net/ HTH, Ray > Original Message > Subj

Re: [PHP] Polymorphism [was] [Fwd: Re: [PHP] Parents constructor]

2006-05-03 Thread Robert Cummings
On Wed, 2006-05-03 at 10:59, Jochem Maas wrote: > Dave Goodchild wrote: > > That is not polymorphism - that is multiple inheritance. Java can't do > > well that clears up my misuse of the terminology! > > > that either, and uses a much cleaner method - interfaces. And interfaces > > are support

Re: [PHP] Printing with php

2006-05-03 Thread tg-php
Couple of things you can try.. 1. If you have control of the browsers being used, there may be a setting to turn off the address printing (I seem to remember something like that.. but don't remember what browser it was). 2. CSS2 has some print control functionality that might help 3. (more PHP

Re: [PHP] Printing with php

2006-05-03 Thread John Wells
On 5/3/06, Mace Eliason <[EMAIL PROTECTED]> wrote: Hi I am working on a project that creates invoices. It will allow the client to print out these invoices after they have been created. Something that I have always noticed is that when you print form the internet you always get the site addres

Re: [PHP] array_push in array maps

2006-05-03 Thread John Wells
On 5/3/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Jonas Said: >> But when I want to have a value from a special column i a row the >> followint >> doesn't work: >> >>$test[$row[2]] = $row[5]; >> >> Or: >> >>$test[$row(2)] = $row[5]; >> >> Do I need to do some kind of concatenating? >> A

[PHP] Printing with php

2006-05-03 Thread Mace Eliason
Hi I am working on a project that creates invoices. It will allow the client to print out these invoices after they have been created. Something that I have always noticed is that when you print form the internet you always get the site address and other info on the print out. Is there a w

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Mathieu Dumoulin
something interesting to note: header('location: newpage.php'); After processing your POST request, just send them to a new page and in that page you can display the result of the process (It can require a bit of change in your code) but the result will be that a refresh will refresh the resu

Re: [PHP] Polymorphism [was] [Fwd: Re: [PHP] Parents constructor]

2006-05-03 Thread Dave Goodchild
Not multiple inheritance. Inheritance. Not multiple orgasm. Intercourse. On 03/05/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Dave Goodchild wrote: > That is not polymorphism - that is multiple inheritance. Java can't do well that clears up my misuse of the terminology! > that either, and uses

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Jochem Maas
Jeff wrote: Is there a way to prevent a re-posting of the form data when a user pushes the "refresh" button on the browser? I have a page that has a form to enter credit's or debit's to a user account. The top of the page displays the users account history and at the bottom is a form to add an

Re: [PHP] Polymorphism [was] [Fwd: Re: [PHP] Parents constructor]

2006-05-03 Thread Jochem Maas
Dave Goodchild wrote: That is not polymorphism - that is multiple inheritance. Java can't do well that clears up my misuse of the terminology! that either, and uses a much cleaner method - interfaces. And interfaces are supported in php5. So php does allow it. Not polymorphism - multiple n

Re: [PHP] array_push in array maps

2006-05-03 Thread Jochem Maas
Jonas - what do you mean 'it doesn't work' (it's like me saying 'the ATM doesn't work and forgetting to mention I'm trying to withdraw 10,000,000 disney dollars - when I mention that fact the reason is probably obvious to you why it doesn't work) Brad Bonkoski wrote: What kind of values are sto

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Stut
Jeff wrote: Is there a way to prevent a re-posting of the form data when a user pushes the "refresh" button on the browser? I have a page that has a form to enter credit's or debit's to a user account. The top of the page displays the users account history and at the bottom is a form to add an

Re: [PHP] Polymorphism [was] [Fwd: Re: [PHP] Parents constructor]

2006-05-03 Thread Dave Goodchild
That is not polymorphism - that is multiple inheritance. Java can't do that either, and uses a much cleaner method - interfaces. And interfaces are supported in php5. So php does allow it. Not polymorphism - multiple inheritance. Not multiple inheritance - interfaces. On 03/05/06, Jochem Maas <[E

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Brad Bonkoski
Is there a way to key off of the data inserted? Like some unique value or set of values that you can do a quick lookup before you insert/update/delete again... Or you could venture into an AJAX style of submission keyed off of a button click then a refresh to a 'report' page, in which case no P

Re: [PHP] array_push in array maps

2006-05-03 Thread Brad Bonkoski
What kind of values are stored in $row[2] and $row[5]? You might need to keep the single quotes $test['$row[2]'] = $row[5]; -Brad Jonas Rosling wrote: There's allways mutch to learn. :-) I'm very happy for all help I can get. I ran into another problem when trying to insert a value. I had

[PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Jeff
Is there a way to prevent a re-posting of the form data when a user pushes the "refresh" button on the browser? I have a page that has a form to enter credit's or debit's to a user account. The top of the page displays the users account history and at the bottom is a form to add an adjustment. I

[PHP] Polymorphism [was] [Fwd: Re: [PHP] Parents constructor]

2006-05-03 Thread Jochem Maas
Original Message On Fri, 2006-03-24 at 10:50, Jochem Maas wrote: Pham Huu Le Quoc Phuc wrote: > I want to execute polymorphism. > I said (a long time ago): ...BUT the OP didn't ask about polymorphism and php doesn't support it at all anyway. Rob replied (also quite a lon

Re: [PHP] array_push in array maps

2006-05-03 Thread Jonas Rosling
There's allways mutch to learn. :-) I'm very happy for all help I can get. I ran into another problem when trying to insert a value. I had no problem with: $test['something'] = '2500'; But when I want to have a value from a special column i a row the followint doesn't work: $test[$row[2]

Re: [PHP] array_push in array maps

2006-05-03 Thread Jochem Maas
Jonas Rosling wrote: Need solve another case regarding array maps. Is it possible to insert more Jonas - in php we just call these things arrays (no 'map') - the array datatype in php is a mash up (and we love it :-) of the 'oldschool' numerically indexed array and what is commonly known as a h

Re: [PHP] array_push in array maps

2006-05-03 Thread Jochem Maas
Stut wrote: Brad Bonkoski wrote: $colors['black'] = '#ff'; Black? Are you sure? Brad might be wearing his 'negative' goggles today :-) -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] array_push in array maps

2006-05-03 Thread Jay Blanchard
[snip] Need solve another case regarding array maps. Is it possible to insert more values like with array_push in arrays as bellow? $colors = array( 'red' => '#ff', 'green' => 'X00ff00', 'blue' => '#ff' ); [/snip] // Append associative

Re: [PHP] array_push in array maps

2006-05-03 Thread Brad Bonkoski
or white ;-) Stut wrote: Brad Bonkoski wrote: $colors['black'] = '#ff'; Black? Are you sure? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array_push in array maps

2006-05-03 Thread Stut
Brad Bonkoski wrote: $colors['black'] = '#ff'; Black? Are you sure? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array_push in array maps

2006-05-03 Thread Stut
Jonas Rosling wrote: Need solve another case regarding array maps. Is it possible to insert more values like with array_push in arrays as bellow? $colors = array( 'red' => '#ff', 'green' => 'X00ff00', 'blue' => '#ff' ); Did you try i

Re: [PHP] array_push in array maps

2006-05-03 Thread chris smith
Need solve another case regarding array maps. Is it possible to insert more values like with array_push in arrays as bellow? $colors = array( 'red' => '#ff', 'green' => 'X00ff00', 'blue' => '#ff' ); Yes. http://www.php.net/array_pus

Re: [PHP] array_push in array maps

2006-05-03 Thread Brad Bonkoski
I don't believe you 'push' to an associative array like this, but if you want to add black for example...just do: $colors['black'] = '#ff'; -Brad Jonas Rosling wrote: Need solve another case regarding array maps. Is it possible to insert more values like with array_push in arrays as bellow

[PHP] array_push in array maps

2006-05-03 Thread Jonas Rosling
Need solve another case regarding array maps. Is it possible to insert more values like with array_push in arrays as bellow? $colors = array( 'red' => '#ff', 'green' => 'X00ff00', 'blue' => '#ff' ); Tanks in advance // Jonas -- PHP Ge

Re: [PHP] Searching and getting values out of array maps

2006-05-03 Thread T.Lensselink
> Hi all, > I'm kind of new with PHP. I work alot with another language called Lasso, > reminds kind of PHP but not the same. > I trying to search after a desired value within an array map (think you > call > it like that in PHP) and to get the value out as well. > > Is this possible in any way? Li

Re: [PHP] PHP Standard style of writing your code

2006-05-03 Thread tedd
Problem stated: At 4:54 AM -0500 5/3/06, Richard Lynch wrote: >>I can't really lug a 19" monitor all over, and there's no room in my sound booth for it, what with the amps, sound boards, computer, CD duplicator, etc. Suggestion offered for consideration: > If cost is not an object, consi

Re: [PHP] Searching and getting values out of array maps

2006-05-03 Thread Brad Bonkoski
Here's a stab... $colors = array("red"=>"#ff","gree"=>"#00ff00","blue"=>"#ff"); echo $colors["blue"]; should output #ff HTH -Brad Jonas Rosling wrote: Hi all, I'm kind of new with PHP. I work alot with another language called Lasso, reminds kind of PHP but not the same. I trying t

[PHP] Searching and getting values out of array maps

2006-05-03 Thread Jonas Rosling
Hi all, I'm kind of new with PHP. I work alot with another language called Lasso, reminds kind of PHP but not the same. I trying to search after a desired value within an array map (think you call it like that in PHP) and to get the value out as well. Is this possible in any way? Like to show you

Re: [PHP] chop x amount of characters from the begining of a string

2006-05-03 Thread Jochem Maas
Richard Lynch wrote: On Tue, May 2, 2006 3:44 pm, Wolf wrote: Someone has way too much time on his hands... :) If they REALLY had too much time on their hands, they'd have rtfm and used mt_rand() instead. :-) nah - if you really too much time you would have mimplemented some kind of inte

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
> Thank you very much for your generous and prompt help. The stylesheet I am > now using looks like this: > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> > > > > > Results of XSL transformation > > @import url(games_output.css); > >

Re: [PHP] Tiny mass mail (Kinda 0T)

2006-05-03 Thread Ryan A
Thanks m8, I appreciate it. Cheers! -Ryan --- Richard Lynch <[EMAIL PROTECTED]> wrote: > On Tue, May 2, 2006 6:16 am, Ryan A wrote: > > The problem is the host is limiting the amount of > > emails that can go from the site per minute, and > we > > need to email all the members (a modest 700 or s

Re: [PHP] XSLT issue

2006-05-03 Thread Dave Goodchild
Thank you very much for your generous and prompt help. The stylesheet I am now using looks like this: http://www.w3.org/1999/XSL/Transform";> Results of XSL transformation @import url(games_output.css);

[PHP] Re: Imagemagick Displaying Images

2006-05-03 Thread Al
Ray Hauge wrote: I have an application that shows thumnails of PDF files in different directories. I have so far decided that I can use "convert" from imagemagick to get a .jpg, .png, .gif, etc. to display as the image. The problem I'm running into is that I don't want to save these thumbnail

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
> And I used this: > > > > > > > Tid select="tid" /> > Type /> > Game select="game" /> > Buy-In$ /> > Status select="state" /> >

Re: [PHP] XSLT issue

2006-05-03 Thread Dave Goodchild
And I used this: Tid Type Game Buy-In$ Status Players Date / Time

Re: [PHP] XSLT issue

2006-05-03 Thread Dave Goodchild
Thanks for our help. Tried both methods and I get this: *Warning*: Sablotron error on line 31: XML parser error 4: not well-formed (invalid token) in */home/stevemas/public_html/dg/xslt/xslt_processor.php*on line *14* On 03/05/06, T.Lensselink <[EMAIL PROTECTED]> wrote: > Hi all, maybe slightl

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
> Hi all, maybe slightly off list but I AM using php and Sablotron to > generate > xslt. > > I have a live poker games feed that takes the following format: > > > > 10035522 > Texas Holdem > Texas Holdem Poker > 5 > 0.5 > USD > Running > 110 > Normal NL 1 >

[PHP] XSLT issue

2006-05-03 Thread Dave Goodchild
Hi all, maybe slightly off list but I AM using php and Sablotron to generate xslt. I have a live poker games feed that takes the following format: 10035522 Texas Holdem Texas Holdem Poker 5 0.5 USD Running 110 Normal NL 1 Regular No Limit 2006-04-24T07:00:00

  1   2   >