Re: [PHP] [RELEASE ANNOUNCEMENT] phpDocumentor 1.3.0RC6

2006-05-03 Thread Lester Caine
Greg Beaver wrote: May 2, 2006 RELEASE ANNOUNCEMENT phpDocumentor 1.3.0RC6 Download: http://pear.php.net/PhpDocumentor http://www.phpdoc.org The phpDocumentor team would like to announce the release of version 1.3.0RC6. This is the last release candidate of version 1.3.0, the first stable

Re: [PHP] [RELEASE ANNOUNCEMENT] phpDocumentor 1.3.0RC6

2006-05-03 Thread Lester Caine
Lester Caine wrote: Greg Beaver wrote: May 2, 2006 RELEASE ANNOUNCEMENT phpDocumentor 1.3.0RC6 Download: http://pear.php.net/PhpDocumentor http://www.phpdoc.org The phpDocumentor team would like to announce the release of version 1.3.0RC6. This is the last release candidate of version

Re: [PHP] Sanity checker?

2006-05-03 Thread Robin Vickery
On 03/05/06, Ezra Nugroho [EMAIL PROTECTED] wrote: PHP experts everywhere, Does anyone know of any tools to test the sanity of your php code? If you were to check the sanity of your code, what would you look for? Hidden messages encoded in the whitespace. -robin -- PHP General Mailing

[PHP] Web app for betting on soccer WorldCup 2006

2006-05-03 Thread FAURE, Bruno (PCO TECHNOLOGIES)
Hi all, I am looking for a web application that could be used for organizing informal intranet bets on soccer worldcup 2006. I can not find such an application, neither in php nor in other languages. I had a look on sourceforge and many websites, but there is nothing Do you know if such apps

Re: [PHP] Web app for betting on soccer WorldCup 2006

2006-05-03 Thread nicolas figaro
FAURE, Bruno (PCO TECHNOLOGIES) a écrit : Hi all, Hi, I am looking for a web application that could be used for organizing informal intranet bets on soccer worldcup 2006. If it's informal, why can't you use a simple password protected spreadsheet (excel, openoffice, or the format you

Re: [PHP] secure upload file

2006-05-03 Thread Richard Lynch
On Tue, May 2, 2006 8:12 pm, kristianto adi widiatmoko wrote: how to secure folder upload file since the privilege of this folder is 777 is any method to create a secure upload file ?? There is no such thing as total security Here are things you can do to improve security: 1. chown the

Re: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-03 Thread Richard Lynch
On Tue, May 2, 2006 3:57 pm, Jochem Maas wrote: Richard Lynch wrote: I believe that if you installed my perror extension: http://l-i-e.com/perror/ heh cool - I saw your posts to internals regarding trying to write an extension, seems you got a result :-) Yeah. An intermediate result, but a

Re: [PHP] Re: php mysql problem

2006-05-03 Thread Richard Lynch
On Tue, May 2, 2006 7:05 am, Ross wrote: This is my database now...I will use the item_id for the order but what if I want to change item_id 3 to item id 1? How can I push all the items down one place? How can I delete any gaps when items are deleted. Change item_id 3 to 1. ... select id

Re: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-03 Thread Oz
Richard Lynch wrote: On Wed, May 3, 2006 12:51 am, Oz wrote: Richard Lynch wrote: On Tue, May 2, 2006 11:29 am, Oz wrote: My script dies with the following line (after a few hours running without other errors/warnings/notices): Fatal error: pcntl_fork(): Error 11 in

Re: [PHP] Re: php mysql problem

2006-05-03 Thread Richard Lynch
On Tue, May 2, 2006 7:22 am, chris smith wrote: On 5/2/06, Ross [EMAIL PROTECTED] wrote: This is my database now...I will use the item_id for the order but what if I want to change item_id 3 to item id 1? How can I push all the items down one place? How can I delete any gaps when items are

Re: [PHP] secure upload file

2006-05-03 Thread Anthony Ettinger
disabled indexes in .htaccess. On 5/3/06, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, May 2, 2006 8:12 pm, kristianto adi widiatmoko wrote: how to secure folder upload file since the privilege of this folder is 777 is any method to create a secure upload file ?? There is no such thing

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

2006-05-03 Thread Richard Lynch
On Tue, May 2, 2006 4:07 am, Barry wrote: [snip] Barry; I'm sorry, but you screwed up the indentation in the sample with in-line brackets. So, duh, it's unreadable. I bet you would have problems coding so much nested IFs or such, i did had them writing that first style above. I haven't had

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

2006-05-03 Thread Richard Lynch
On Tue, May 2, 2006 8:49 am, tedd wrote: And for your problem with viewing. probably try to get a 19 monitor. They are not that expencive anymore.(The CRT ones) Even on 1024x768 you see LOTSA code. I frequently code on smaller monitors -- laptop, ancient desktop, stripped-down flat-panel

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

2006-05-03 Thread Barry
Richard Lynch schrieb: On Tue, May 2, 2006 4:07 am, Barry wrote: [snip] Barry; I'm sorry, but you screwed up the indentation in the sample with in-line brackets. So, duh, it's unreadable. It's not quite easy to intend in mail clients because that might be they are not suited for coding at

Re: [PHP] Re: php mysql problem

2006-05-03 Thread chris smith
On 5/3/06, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, May 2, 2006 7:22 am, chris smith wrote: On 5/2/06, Ross [EMAIL PROTECTED] wrote: This is my database now...I will use the item_id for the order but what if I want to change item_id 3 to item id 1? How can I push all the items down

Re: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-03 Thread Richard Lynch
On Wed, May 3, 2006 12:51 am, Oz wrote: Richard Lynch wrote: On Tue, May 2, 2006 11:29 am, Oz wrote: My script dies with the following line (after a few hours running without other errors/warnings/notices): Fatal error: pcntl_fork(): Error 11 in /home/foo/bar.php on line 297 Is there any

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

2006-05-03 Thread Richard Lynch
On Tue, May 2, 2006 3:45 pm, John Nichel wrote: Richard Lynch 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 so) a newsletter/update...any

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

2006-05-03 Thread Richard Lynch
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. :-) Rory Browne wrote: function chop_two_or_3_characters_from_front_of_string($str){ $cut = rand(2, 3);

Re: [PHP] PHP-Jabber

2006-05-03 Thread Jyry Kuukkanen
Hello On Wed, 3 May 2006, Tony Aldrich wrote: Can somebody recommend clean php jabber library? I must send notifications to some users. This lib weems to work: http://cjphp.netflint.net/ require(class.jabber.php); $jabber = new Jabber; $jabber-server = jabber.org;

[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: ?xml version=1.0 encoding=utf-8?xmlfeed tournament tid10035522/tid nameTexas Holdem/name gameTexas Holdem Poker/game buyin5/buyin

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: ?xml version=1.0 encoding=utf-8?xmlfeed tournament tid10035522/tid nameTexas Holdem/name gameTexas Holdem Poker/game

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 slightly

Re: [PHP] XSLT issue

2006-05-03 Thread Dave Goodchild
And I used this: xsl:template name=results xsl:for-each select=tournament xsl:if test=position() 4 table id=top3table cellspacing=0 tr class=oddthTid/thtdxsl:value-of select=tid //td/tr trthType/thtdxsl:value-of

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
And I used this: xsl:template name=results xsl:for-each select=tournament xsl:if test=position() 4 table id=top3table cellspacing=0 tr class=oddthTid/thtdxsl:value-of select=tid //td/tr

[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

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: ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=/xmlfeed html head titleResults of XSL

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 so) a

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: ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=/xmlfeed html head

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. :-) muppet-comment nah - if you really too much time you would have mimplemented

[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] 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 to search after a

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, consider

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? Like to

[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

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

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_push

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 it?

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 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 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 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 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

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:

[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 long

[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

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

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

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

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] 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

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

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 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 a

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

[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

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? Ah, Lasso! I coded that in

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 address

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

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 supported in

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

[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] =

[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

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]

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 [group] =

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). Hope

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

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

[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] 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.

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 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

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'

[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.083

RE: [PHP] Sanity checker?

2006-05-03 Thread Chris W. Parker
Ezra Nugroho mailto:[EMAIL PROTECTED] 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 this

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

Re: [PHP] mod_rewrite help

2006-05-03 Thread John Nichel
Jay Blanchard wrote: snip [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

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

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

2006-05-03 Thread Satyam
- Original Message - From: Rory McKinley [EMAIL PROTECTED] To: php-general@lists.php.net 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

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 viewing a

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] Sanity checker?

2006-05-03 Thread Satyam
- Original Message - From: Chris W. Parker [EMAIL PROTECTED] Ezra Nugroho mailto:[EMAIL PROTECTED] 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,

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 that

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

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

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

[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] mod_rewrite help

2006-05-03 Thread Jochem Maas
lol - I want a robe too :-) blue will be fine. Anthony Ettinger wrote: snip [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.

Re: [PHP] mod_rewrite help

2006-05-03 Thread Jochem Maas
John Nichel wrote: 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. this might help in the calculation: http://www.netsoc.tcd.ie/~allah/backup/cgi-bin/woodchuck.php :-) -- PHP General Mailing

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] 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

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=35ICS2=80ICS3=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

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

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 year without

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: snip ... How much wood could a woodchuck chuck if a woodchuck could chuck wood? While viewing a php web site that

[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

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

RE: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Chris W. Parker
Steve mailto:[EMAIL PROTECTED] 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 and

[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] 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

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 year without

  1   2   >