php-general Digest 22 Jun 2009 07:26:13 -0000 Issue 6188

2009-06-22 Thread php-general-digest-help
php-general Digest 22 Jun 2009 07:26:13 - Issue 6188 Topics (messages 294381 through 294402): Re: mirroring website 294381 by: Nitsan Bin-Nun 294382 by: Richard Heyes 294383 by: Lars Nielsen 294384 by: Jonesy Re: isset question 294385 by: Gary

php-general Digest 22 Jun 2009 19:52:12 -0000 Issue 6189

2009-06-22 Thread php-general-digest-help
php-general Digest 22 Jun 2009 19:52:12 - Issue 6189 Topics (messages 294403 through 294416): Re: Passing Values between C App and PHP 294403 by: Per Jessen Re: PEAR Spreadsheet_Excel_Writer setLocked method 294404 by: Thodoris Re: isset question 294405 by: Ford,

RE: [PHP] Passing Values between C App and PHP

2009-06-22 Thread bruce
if memory serves... you can look into using a shared memory block, or pipes to communicate between the php/c app -Original Message- From: Tobias Krieger [mailto:tobias.krie...@teamfrednet.org] Sent: Sunday, June 21, 2009 2:44 PM To: Nathan Nobbe Cc: php-general@lists.php.net

Re: [PHP] Passing Values between C App and PHP

2009-06-22 Thread Per Jessen
Tobias Krieger wrote: This would be a nice and fast solution, but unfortunatelly, it's like that the C programm needs to surveilance the hardware all the time (controlling values,...) hence, it would run more as a daemon. Depending your skill-levels with C, there is not much to it. Here is

Re: [PHP] PEAR Spreadsheet_Excel_Writer setLocked method

2009-06-22 Thread Thodoris
Thodoris wrote: I've used it for some time but never needed to lock a cell. Here is a piece of code that shows how to apply a format to a cell: Hope it helps. I think that by doing something like this: $format_bold-setLocked(); while creating the format could do the trick but it is not

RE: [PHP] isset question

2009-06-22 Thread Ford, Mike
On 19 June 2009 19:53, Ashley Sheridan advised: On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote: On 18 June 2009 20:25, LAMP advised: using !empty() instead isset() will work if you don't care for PHP Notice: Undefined variable... If you want to avoid PHP Notice you have to use both:

Re: [PHP] resubmit form after validation error

2009-06-22 Thread PJ
Hi Caner, Thanks for the input. I'm not sure that would do it as the first instruction on the page is : $bid = $_GET['id'] ; thus, the page cannot even be loaded if there is no id in the uri - it generates a number of errors. In order to use the feature of editing, I use a search page and then

[PHP] Pointers for NuSOAP

2009-06-22 Thread Anton Heuschen
Does anyone have any good links to basic and more advanced (and some examples) of NuSOAP and using this ? Would be appreciated to see some recommendations that might of helped others etc. Thank you in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Pointers for NuSOAP

2009-06-22 Thread Jonathan Tapicer
I've used this one, split in 4 parts: Introduction to NuSOAP: http://www.scottnichol.com/nusoapintro.htm Programming with NuSOAP: http://www.scottnichol.com/nusoapprog.htm Programming with NuSOAP Part 2: http://www.scottnichol.com/nusoapprog2.htm Programming with NuSOAP Using WSDL:

[PHP] PHP SOAP Using SAML

2009-06-22 Thread Carlos Medina
Hi Anybody, I am evaluating to use Webservices to solve an knowed Issue. I need to know, if it is Possible to use SAML 1.0 with PHP 4 or PHP 5 and when yes, where can i get information about this Issue or open Source Software,etc. Regards Carlos -- PHP General Mailing List

Re: [PHP] Pointers for NuSOAP

2009-06-22 Thread Anton Heuschen
Much appreciated Jonathan, going to look at it later tonight. 2009/6/22 Jonathan Tapicer tapi...@gmail.com: I've used this one, split in 4 parts: Introduction to NuSOAP: http://www.scottnichol.com/nusoapintro.htm Programming with NuSOAP: http://www.scottnichol.com/nusoapprog.htm Programming

Re: [PHP] resubmit form after validation error

2009-06-22 Thread Caner Bulut
Hi PJ, You can use the structure following $bid = htmlentities($_GET['id']); if(empty($bid) { $bid=0; } if(is_numeric($bid)) { if($bid==0) { do something } else if($bid==1) { do something } } After this code there will always a number, If the id variable is 0, bid will be 0 and you can

Re: [PHP] PHP SOAP Using SAML

2009-06-22 Thread Karel Kozlik
Hi, take a look to Lasso. They claims it support SAML 2.0. http://lasso.entrouvert.org/ Karel Carlos Medina napsal(a): Hi Anybody, I am evaluating to use Webservices to solve an knowed Issue. I need to know, if it is Possible to use SAML 1.0 with PHP 4 or PHP 5 and when yes, where can i get

[PHP] sharing PHP sessions between web servers using NFS

2009-06-22 Thread Randy Paries
Hello, I have three web servers (in a lvs cluster) in the cluster they all think they are www.mydomain.com With LVS you can not guarantee that each request is going to come in via the same server I am trying to share php sessions between servers. I have seen some examples that use mysql for

Re: [PHP] sharing PHP sessions between web servers using NFS

2009-06-22 Thread Per Jessen
Randy Paries wrote: Hello, I have three web servers (in a lvs cluster) in the cluster they all think they are www.mydomain.com With LVS you can not guarantee that each request is going to come in via the same server I thought LVS had some session persistence stuff ? /Per -- Per Jessen,

[PHP] sharing PHP sessions between web servers using NFS

2009-06-22 Thread [moderação] Erick Couto
you can use memcached for php sessions.. it´s simple, transparent, and configurated on php.ini too. i have used it for a long time. 2009/6/22 Per Jessen p...@computer.org Randy Paries wrote: Hello, I have three web servers (in a lvs cluster) in the cluster they all think they are

[PHP] XSS Preventing.

2009-06-22 Thread Caner BULUT
Hi Guys, I have a question if you have any knowledge about this please let me know. I getting data from a form with POST method like following. $x = htmlentities($_POST['y']); . After getting all form daha I save them into DB, I used mysql_real_escape_string. I have an page

[PHP] Why does simpleXML give me nested objects for blank tags?

2009-06-22 Thread Daevid Vincent
Repost as I got zero replies. Does anyone know why this is? Seems like a bug to me, or at least should be documented as such whacky behavior. Are there any solutions to this or work-arounds? -Original Message- From: Daevid Vincent [mailto:dae...@daevid.com] Sent: Thursday, June 18, 2009

Re: [PHP] Why does simpleXML give me nested objects for blank tags?

2009-06-22 Thread Nathan Nobbe
On Mon, Jun 22, 2009 at 2:13 PM, Daevid Vincent dae...@daevid.com wrote: Repost as I got zero replies. Does anyone know why this is? Seems like a bug to me, or at least should be documented as such whacky behavior. Are there any solutions to this or work-arounds? -Original Message-

[PHP] Re: XSS Preventing.

2009-06-22 Thread Shawn McKenzie
Caner BULUT wrote: Hi Guys, I have a question if you have any knowledge about this please let me know. I getting data from a form with POST method like following. $x = htmlentities($_POST['y']); . After getting all form daha I save them into DB, I used

RE: [PHP] Re: XSS Preventing.

2009-06-22 Thread Caner BULUT
Thanks for response. But if I use before display there is charset problems occurs. And htmlentities does not support Turkish Charset. How can I decode data after pass thought htmlentities. Thanks. -Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: 22 June

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-22 Thread Nathan Nobbe
On Sun, Jun 21, 2009 at 6:17 PM, James McLean james.mcl...@gmail.comwrote: On Mon, Jun 22, 2009 at 9:40 AM, Nathan Nobbequickshif...@gmail.com wrote: On Sun, Jun 21, 2009 at 5:56 PM, James McLean james.mcl...@gmail.com wrote: did you take a look at the size of the cache you created ?

Re: [PHP] Re: XSS Preventing.

2009-06-22 Thread Shawn McKenzie
Caner BULUT wrote: Thanks for response. But if I use before display there is charset problems occurs. And htmlentities does not support Turkish Charset. How can I decode data after pass thought htmlentities. I have no idea, I was just saying that if you use it, use it for display and not

RE: [PHP] Re: XSS Preventing.

2009-06-22 Thread Caner BULUT
Shawm thanks, İf you using htmlentities awere that he change the charset to ISO-8859-1. So this is the a problem. For solving this there were some parameters. Htmlentities($str, ENT_QUOTES, 'UTF-8') But there is no Turkish Charset inside supportad Charset. You can see the detail info from

Re: [PHP] XSS Preventing.

2009-06-22 Thread Michael A. Peters
Caner BULUT wrote: Hi Guys, I have a question if you have any knowledge about this please let me know. I getting data from a form with POST method like following. $x = htmlentities($_POST['y']); . After getting all form daha I save them into DB, I used

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-22 Thread James McLean
On Tue, Jun 23, 2009 at 6:17 AM, Nathan Nobbequickshif...@gmail.com wrote: hmm, 2 other thoughts i have.. . long shot, but do you have apc.php installed on a diff domain than the moodle app (not sure but i suspect apc.php only shows cached values for the domain in which its currently running