Re: [PHP] Could this be a bug?

2010-09-15 Thread Thijs Lensselink
On 09/14/2010 11:31 PM, Camilo Sperberg wrote: On Tue, Sep 14, 2010 at 02:46, Thijs Lensselinkd...@lenss.nl wrote: On 09/14/2010 08:33 AM, Thijs Lensselink wrote: On 09/14/2010 12:16 AM, Camilo Sperberg wrote: I have some really strange behaviour going on here, and I think it could

[PHP] Re: Question about news.php.net

2010-09-15 Thread MikeB
Gary wrote: MikeB wrote: I understand that the news server is based on a mailing list, but I can't handle another high-volume source dumping stuff into my email (even if I filter it into a separate folder) so I am trying to subscribe through the news group. However, getting access seems to be

[PHP] Xpath arguments in variable

2010-09-15 Thread Sridhar Pandurangiah
Hi I have the following statement that locates the node membernumber with the value A192. This works perfectly fine. $v = $row-xpath('//membernumber[. = A192]'); But now I need to pass this value to XPath within a string variable say $v = $row-xpath('//membernumber[. = $MemberId]'); But

Re: [PHP] Xpath arguments in variable

2010-09-15 Thread Ashley Sheridan
On Wed, 2010-09-15 at 13:06 +0530, Sridhar Pandurangiah wrote: Hi I have the following statement that locates the node membernumber with the value A192. This works perfectly fine. $v = $row-xpath('//membernumber[. = A192]'); But now I need to pass this value to XPath within a string

[PHP] Re: Xpath arguments in variable

2010-09-15 Thread Sridhar Pandurangiah
Original Message Subject: Re: Xpath arguments in variable From: php-gene...@garydjones.name (Gary) To: Date: Wed Sep 15 2010 13:34:11 GMT+0530 (IST) Whats wrong with $v = $row-xpath('//membernumber[. = ' . $MemberId . ']'); ? Am I not understanding what you are trying to ask?

Re: [PHP] Re: Xpath arguments in variable

2010-09-15 Thread Ashley Sheridan
On Wed, 2010-09-15 at 14:03 +0530, Sridhar Pandurangiah wrote: Original Message Subject: Re: Xpath arguments in variable From: php-gene...@garydjones.name (Gary) To: Date: Wed Sep 15 2010 13:34:11 GMT+0530 (IST) Whats wrong with $v = $row-xpath('//membernumber[. = ' .

[PHP] Re: Xpath arguments in variable

2010-09-15 Thread Pete Ford
If you needed the double-quotes in the Xpath expression when the constant is used , then you probably need them in the variable version. $v = $row-xpath('//membernumber[. = '.$MemberId.']'); That should put the double-quotes in for you... On 15/09/10 09:33, Sridhar Pandurangiah wrote:

Re: [PHP] Re: Xpath arguments in variable

2010-09-15 Thread Sridhar Pandurangiah
Managed to resolve it. Phew! $v = $row-xpath('//membernumber[. = ' . '' . $MemberId . '' . ']'); works. Best regards Sridhar Original Message Subject: Re: [PHP] Re: Xpath arguments in variable From: a...@ashleysheridan.co.uk (Ashley Sheridan) To: Date: Wed Sep 15 2010

Re: [PHP] Re: Xpath arguments in variable

2010-09-15 Thread Ashley Sheridan
On Wed, 2010-09-15 at 14:27 +0530, Sridhar Pandurangiah wrote: Managed to resolve it. Phew! $v = $row-xpath('//membernumber[. = ' . '' . $MemberId . '' . ']'); works. Best regards Sridhar Original Message Subject: Re: [PHP] Re: Xpath arguments in variable

Re: [PHP] php cli question

2010-09-15 Thread Bostjan Skufca
Here are the results I got when question of migration from apache to nginx was brought up: http://blog.a2o.si/2009/06/24/apache-mod_php-compared-to-nginx-php-fpm/ (BTW there is some FPM in main PHP distribution now) As for resource management, I recommend looking at php sources

[PHP] How to store data that doesn't change?

2010-09-15 Thread Peter van der Does
Hi, How do you people store data that doesn't change, an example of this would be the version number of your software. You might want to use it through out your program but how to you store it? As far as I can see there are several options to use this data. 1. Global Variable 2. Store it in a

Re: [PHP] How to store data that doesn't change?

2010-09-15 Thread Peter Lind
On 15 September 2010 14:46, Peter van der Does pvanderd...@gmail.com wrote: Hi, How do you people store data that doesn't change, an example of this would be the version number of your software. You might want to use it through out your program but how to you store it? As far as I can see

Re: [PHP] How to store data that doesn't change?

2010-09-15 Thread Ashley Sheridan
On Wed, 2010-09-15 at 08:46 -0400, Peter van der Does wrote: Hi, How do you people store data that doesn't change, an example of this would be the version number of your software. You might want to use it through out your program but how to you store it? As far as I can see there are

Re: [PHP] 1984 (Big Brother)

2010-09-15 Thread Marc Guay
if(file_exists('boss_man_say_okay') ){ // let monkeys work } Is there an acronym for the sound of sad, knowing laughter? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Install library

2010-09-15 Thread Jordan Jovanov
Hello All, I have one very funny question. A need me PDFlibrary. Can somebody tall me how can I download and install on my server this library. I use PuTTy to connect to my server. Does somebody know the command line for download in istall library in php. Thanks a lot. Best Regards, Jordan

Re: [PHP] Install library

2010-09-15 Thread Ashley Sheridan
On Wed, 2010-09-15 at 15:16 +0200, Jordan Jovanov wrote: Hello All, I have one very funny question. A need me PDFlibrary. Can somebody tall me how can I download and install on my server this library. I use PuTTy to connect to my server. Does somebody know the command line for download in

[PHP] bcompiler: compile in a diferent directory

2010-09-15 Thread Ramiro Gonzalez
I use bcompiler in my php code(bcompiler_write_header+bcompiler_write_file+bcompiler_write_footer). If the original phps are not located in the deployment directory, when I ejecute the compiled code(In deployment directory) I get an error because require_once use the path to the not compiled phps.

[PHP] Sending Encrypted Email

2010-09-15 Thread Floyd Resler
This is kind of both on and off topic. I need to send encrypted email. I have found code to do this but I'm not sure which certificate file to use. Can I use our server's signed certificate we use for Apache? Does anyone know of a clear, step-by-step tutorial? Thanks! Floyd -- PHP

Re: [PHP] Re: Xpath arguments in variable

2010-09-15 Thread David Harkness
And let's not forget $v = $row-xpath(//membernumber[. = \$MemberId\]); The \ inside the string turns into a double-quote and using to delimit the string allows for variable substitution.

Re: [PHP] Question about news.php.net

2010-09-15 Thread MikeB
Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeBmpbr...@gmail.com wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and say that

Re: [PHP] php cli question

2010-09-15 Thread J Ravi Menon
Thanks Bostjan for the suggestion. I did raise the issue and here is the reply: http://news.php.net/php.internals/49672 Thx, Ravi On Wed, Sep 15, 2010 at 2:38 AM, Bostjan Skufca bost...@a2o.si wrote: Here are the results I got when question of migration from apache to nginx was brought up:

Re: [PHP] 1984 (Big Brother)

2010-09-15 Thread Yousif Masoud
On 12/09/10 17:32, tedd wrote: Hi gang: I have a client who wants his employees' access to their online business database restricted to only times when he is logged on. (Don't ask why) In other words, when the boss is not logged on, then his employees cannot access the business database in

Re: [PHP] 1984 (Big Brother)

2010-09-15 Thread Matty Sarro
Ooooh, how about a pressure sensor on his seat??? Like the ones they have in cars to make that little airbag light illuminate. if buttDetected{ allowAccess(); } On Wed, Sep 15, 2010 at 7:00 PM, Yousif Masoud yousif.mas...@gmail.comwrote: On 12/09/10 17:32, tedd wrote: Hi gang: I have a

Re: [PHP] 1984 (Big Brother)

2010-09-15 Thread Phpster
Next we'll be suggesting sharks with frikking laser attached to their heads to guard the door! Bastien Sent from my iPod On Sep 15, 2010, at 19:53, Matty Sarro msa...@gmail.com wrote: Ooooh, how about a pressure sensor on his seat??? Like the ones they have in cars to make that little