Re: [PHP] unset in foreach breaks recrusion

2008-06-30 Thread Per Jessen
David Sky wrote: Hello everyone! A couple of days ago I submitted a bug to PHP http://bugs.php.net/bug.php?id=45385 But I was mistaken, apparently it's not a bug. And I was sent here to get help. [snip] So before I write a reply to the bug i submitted, I wanted to know if there's

RE: [PHP] unset in foreach breaks recrusion

2008-06-30 Thread Chetan Rane
yes Chetan Dattaram Rane | Software Engineer | Persistent Systems [EMAIL PROTECTED] | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014 Innovation in software product design, development and delivery- www.persistentsys.com -Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED]

[PHP] can you give me example of website using postgresql database?

2008-06-30 Thread paragasu
i am planning to use postgresql for my next project (social network). anyone can point me any website using postgresql database? it will help me a lot.. thanks.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unset in foreach breaks recrusion

2008-06-30 Thread Jason Norwood-Young
On Sun, 2008-06-29 at 18:25 -0800, David Sky wrote: Hello everyone! A couple of days ago I submitted a bug to PHP http://bugs.php.net/bug.php?id=45385 But I was mistaken, apparently it's not a bug. And I was sent here to get help. I think you might be forgetting to return $return. J --

Re: [PHP] Monitor a WP website

2008-06-30 Thread Thiago Melo de Paula
Tedd, very good your solution. Thanks for sharing. Regards, Thiago On Tue, Jun 24, 2008 at 6:22 PM, tedd [EMAIL PROTECTED] wrote: At 3:50 PM -0400 6/24/08, Daniel Brown wrote: On Tue, Jun 24, 2008 at 3:29 PM, tedd [EMAIL PROTECTED] wrote: Okay, then get_file_contents(), parse between the

Re: [PHP] can you give me example of website using postgresql database?

2008-06-30 Thread Thijs Lensselink
Quoting paragasu [EMAIL PROTECTED]: i am planning to use postgresql for my next project (social network). anyone can point me any website using postgresql database? it will help me a lot.. thanks.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] unset in foreach breaks recrusion

2008-06-30 Thread Roberto Costumero Moreno
That's not the problem. Look that the function is called with $return, so there is a reference to the variable in which the function returns the value (if not there would not be an answer...). Otherwise, i think the problem is in the recursive call inside the function. Once you make the unset,

[PHP] SOAP - function does not exist?

2008-06-30 Thread Dan Joseph
Hi, I've got a web service that I have created that. It has several functions, here is the var_dump of __getfunctions(); array(11) { [0]= string(52) getQuoteResponse getQuote(getQuote $getquoterequest) [1]= string(64) submitOrderResponse submitOrder(submitOrder $submitorderrequest)

RE: [PHP] SOAP - function does not exist?

2008-06-30 Thread Will Fitch
Your WSDL is referencing a document literal service. How are you making the request? For instance, look at this example: $soap = new SoapClient('some.wsdl'); $soap-getOrderHistory('somestring'); The above might not work as your document literal service (not RPC) is looking for the data in the

RE: [PHP] SOAP - function does not exist?

2008-06-30 Thread Will Fitch
It doesn't look like the SOAP service at http://new.vehicletransportusa.com/v2/services/URS.QuoteServices.php doesn't actually implement a function called getOrderHistory. Can you verify that? From: Dan Joseph [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 9:52 AM To: Will Fitch

Re: [PHP] can you give me example of website using postgresql database?

2008-06-30 Thread Nirmalya Lahiri
Paragasu, You are making a very good plan. I, from 2004 working on PostgreSQL. I can't show you anything because my project(web based application) is a inhouse intranet project, but postgresql is too much powerfull. --- Nirmalya Lahiri [+91-9433113536] --- On Mon, 6/30/08, paragasu [EMAIL

Re: [PHP] SOAP - function does not exist?

2008-06-30 Thread Dan Joseph
On Mon, Jun 30, 2008 at 11:08 AM, Will Fitch [EMAIL PROTECTED] wrote: It doesn't look like the SOAP service at http://new.vehicletransportusa.com/v2/services/URS.QuoteServices.phpdoesn't actually implement a function called getOrderHistory. Can you verify that? *From:* Dan Joseph

Re: [PHP] unset in foreach breaks recrusion

2008-06-30 Thread David Sky
Hey Robero, Thanks for the answer, the none recursion function is a good idea, although as provided in your example if would only return one entry from each parent it can get to and it only can get to few, depends on how the array is sorted. Basically you can make it work if you would sort the

Re: [PHP] unset in foreach breaks recrusion

2008-06-30 Thread Roberto Costumero Moreno
Hi David, That's good work ;-) You are right that my example would only return one entry for each parent. Didn't realized of that. I know the local copies you create in the recursive calls is not the best solution in efficiency, but lots of times it is better to have local copies of the array

[PHP] Re: Inspiration for a Tombstone.

2008-06-30 Thread Shawn McKenzie
tedd wrote: Hi gang: For a break in our normal serious thinking, I suggested tombstone wit of: Always on the edge of greatness Dan offered: /cruelWorld or /Dan or ?php function dan($dateOfDeath) { return Daniel P. Brown: 01-01-1970 - .$dateOfDeath; }

Re: [PHP] can you give me example of website using postgresql database?

2008-06-30 Thread paragasu
i am afraid to rely on mysql5 since it is already purchase by sun. there is nothing wrong about sun. but i see there is more i can do with postgresql. On 6/30/08, Nirmalya Lahiri [EMAIL PROTECTED] wrote: Paragasu, You are making a very good plan. I, from 2004 working on PostgreSQL. I can't

[PHP] Encription

2008-06-30 Thread Stefano Esposito
Hi all, i need to encrypt a sensible string to pass it whit GET method. I need that to be decriptable (to use the string in the receiving script) and not to be base64 (too easy to decript)... is there anything similar, considering that my host hasn't installed the Pear::Crypt_GPG package?

RE: [PHP] Encription

2008-06-30 Thread Will Fitch
Have you considered mcrypt then base64? -Original Message- From: Stefano Esposito [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 2:37 PM To: php-general@lists.php.net Subject: [PHP] Encription Hi all, i need to encrypt a sensible string to pass it whit GET method. I need that to

RE: [PHP] can you give me example of website using postgresql database?

2008-06-30 Thread Will Fitch
The purchase of MySQL by Sun should actually give you more comfort. They will be able to attach more money and developers to the project. Remember, the advantage of open-source is not just that it's free, but that you may freely modify it for your purpose (keeping in mind the restrictions of

Re: [PHP] Encription

2008-06-30 Thread Richard Heyes
my host hasn't installed the Pear::Crypt_GPG package? (actually, it hasn't installed Pear at all). You can just go to the pear (http://pear.php.net) website and cut/paste the code (using the same directory structure). There's no requirement to use the PEAR installer (in fact I don't and

[PHP] String to date

2008-06-30 Thread Mark Bomgardner
I need to convert a date retrieved from user input to a mysql date. Here the problem, I need to convert one of three possible combinations, either 01/01/2008,01-01-2008 or 01.01.2008. I can't use explode because it's limited to one character to explode on. I would prefer not to use regexp, but

Re: [PHP] String to date

2008-06-30 Thread Bastien Koert
On Mon, Jun 30, 2008 at 4:58 PM, Mark Bomgardner [EMAIL PROTECTED] wrote: I need to convert a date retrieved from user input to a mysql date. Here the problem, I need to convert one of three possible combinations, either 01/01/2008,01-01-2008 or 01.01.2008. I can't use explode because it's

Re: [PHP] String to date

2008-06-30 Thread Wolf
Mark Bomgardner [EMAIL PROTECTED] wrote: I need to convert a date retrieved from user input to a mysql date. Here the problem, I need to convert one of three possible combinations, either 01/01/2008,01-01-2008 or 01.01.2008. I can't use explode because it's limited to one character to

RE: [PHP] String to date

2008-06-30 Thread Boyd, Todd M.
-Original Message- From: Mark Bomgardner [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 3:58 PM To: php-general@lists.php.net Subject: [PHP] String to date I need to convert a date retrieved from user input to a mysql date. Here the problem, I need to convert one of three

Re: [PHP] String to date

2008-06-30 Thread mike503
couldn't strtotime() do this without any mods? I personally would try that first... On 6/30/08, Mark Bomgardner [EMAIL PROTECTED] wrote: I need to convert a date retrieved from user input to a mysql date. Here the problem, I need to convert one of three possible combinations, either

Re: [PHP] can you give me example of website using postgresql database?

2008-06-30 Thread Chris
I'm not sure what you're looking for in a RDMS, but the simple fact that you are having a hard time finding a robust, live site that uses PostgreSQL should scare you more than Sun's purchase of MySQL. Just because you don't know any doesn't mean there aren't any. Someone else pointed out

[PHP] Simple array problem

2008-06-30 Thread Brian Dunning
I'm trying to add a number to a value in an array. Pretend I have this: $new_value = array('orange', 2); $arr = array( array('blue', 4), array('orange', 5), array('green', 6)); I want to add the new value to the existing matching array element, so I end up with this:

Re: [PHP] unset in foreach breaks recrusion

2008-06-30 Thread David Sky
Hey, Can't use your example, as you check weather $sorted is empty, if it is - run the foreach and return, but on next recursion when it's not empty - do nothing :) Though I found how to cut a few seconds (on very big array), removing the first if, and adding a $return=true to functions'

Re: Re: [PHP] exec() Error

2008-06-30 Thread zhiqi pan
use wget exec(wget http://www.mysite.com/calculate.php;); Only execute the php programe from web exec(/usr/bin/php /.../calculate.php) 2008/6/27 Boyd, Todd M. [EMAIL PROTECTED]: -Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2008 7:50 AM