php-general Digest 27 Jun 2011 15:01:17 -0000 Issue 7378

2011-06-27 Thread php-general-digest-help
php-general Digest 27 Jun 2011 15:01:17 - Issue 7378 Topics (messages 313742 through 313754): Re: asynchronous launch of a script 313742 by: Jim Giner 313743 by: Jim Lucas 313744 by: Tamara Temple 313746 by: Stuart Dallas 313749 by: Richard Quadling

php-general Digest 28 Jun 2011 03:07:49 -0000 Issue 7379

2011-06-27 Thread php-general-digest-help
php-general Digest 28 Jun 2011 03:07:49 - Issue 7379 Topics (messages 313755 through 313770): Re: Php filter validate url 313755 by: Shawn McKenzie 313756 by: Plamen Ivanov 313757 by: Jim Lucas 313760 by: Plamen Ivanov How to implement Authentication of UNIX

Re: [PHP] Re: asynchronous launch of a script

2011-06-27 Thread Tamara Temple
On Jun 26, 2011, at 11:52 PM, Jim Lucas wrote: On 6/26/2011 7:58 PM, Jim Giner wrote: You mean - you want a second thread to run independently of your current running script? A wonderful thing to do and helpful for long intenesive processes but do you really want to go thru the hassles of

Re: [PHP] Re: Php filter validate url

2011-06-27 Thread Tim Streater
On 27 Jun 2011 at 00:15, Richard Riley rile...@googlemail.com wrote: In addition your content type in your post is incorrect. Your header contains Content-Type: multipart/alternative; boundary=00151747b53cf2927204a6a46ebb But its not multipart. This happens a lot in this group and I dont

Re: [PHP] Re: asynchronous launch of a script

2011-06-27 Thread Stuart Dallas
On Monday, 27 June 2011 at 07:10, Tamara Temple wrote: On Jun 26, 2011, at 11:52 PM, Jim Lucas wrote: On 6/26/2011 7:58 PM, Jim Giner wrote: You mean - you want a second thread to run independently of your current running script? A wonderful thing to do and helpful for long

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-27 Thread Richard Quadling
On 25 June 2011 22:11, Tamara Temple tamouse.li...@gmail.com wrote: On Jun 24, 2011, at 1:35 PM, Richard Quadling wrote: On 24 June 2011 18:23, Tamara Temple tamouse.li...@gmail.com wrote: On Jun 24, 2011, at 10:28 AM, Richard Quadling wrote: On 24 June 2011 15:44, Vitalii Demianets

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-27 Thread Steve Staples
On Sat, 2011-06-25 at 16:11 -0500, Tamara Temple wrote: On Jun 24, 2011, at 1:35 PM, Richard Quadling wrote: On 24 June 2011 18:23, Tamara Temple tamouse.li...@gmail.com wrote: On Jun 24, 2011, at 10:28 AM, Richard Quadling wrote: On 24 June 2011 15:44, Vitalii Demianets

Re: [PHP] asynchronous launch of a script

2011-06-27 Thread Richard Quadling
On 27 June 2011 03:42, Tamara Temple tamouse.li...@gmail.com wrote: How do I launch a php script from another running php script asynchronously? I'm a windows user. One of the things I wanted to to was to create non-blocking process which I could communicate with using PHP. I use pecl/wincache

Re: [PHP] Memory limit Problem

2011-06-27 Thread Graham Drabble
On 23 Jun 2011 usene...@drabble.me.uk (Graham Drabble) wrote in news:xns9f0d980579291grahamdrabbleline...@id-77355.user.dfncis.de: On 23 Jun 2011 ja...@nixsecurity.org wrote in news:23a261c.efc7a3a4b4a0468ab221437b2018e...@webmail.lomag.net: Check the value of the upload_max_filesize and

Re: Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-27 Thread Tim Streater
On 27 Jun 2011 at 13:18, Steve Staples sstap...@mnsi.net wrote: On Sat, 2011-06-25 at 16:11 -0500, Tamara Temple wrote: Well played, sir, well played. I think we should go through all the xkcd comics that relate to programming somehow and insert them in the php.net documentation :)

Re: [PHP] Memory limit Problem

2011-06-27 Thread Lester Caine
Graham Drabble wrote: From phpinfo() upload_max_filesize 800M 800M post_max_size 1000M 1000M (fwiw the file I'm uploading is ~85MB) Any ideas from anyone? FWIW, the setup works on another server but doesn't work on this server. The upload_max_filesize, post_max_size and memory_limit

Re: [PHP] Memory limit Problem

2011-06-27 Thread Richard Quadling
On 27 June 2011 14:16, Graham Drabble usene...@drabble.me.uk wrote: On 23 Jun 2011 usene...@drabble.me.uk (Graham Drabble) wrote in news:xns9f0d980579291grahamdrabbleline...@id-77355.user.dfncis.de: On 23 Jun 2011 ja...@nixsecurity.org wrote in

Re: [PHP] Re: Php filter validate url

2011-06-27 Thread Plamen Ivanov
On Sun, Jun 26, 2011 at 5:44 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 06/26/2011 12:31 PM, Adam Tong wrote: Hi, I wanted tu use php filters for validation to avoid regular expresions. Is it possible that FILTER_VALIDATE_URL only checks if the string has http:// and do not

Re: [PHP] Re: Php filter validate url

2011-06-27 Thread Shawn McKenzie
On 06/27/2011 10:01 AM, Plamen Ivanov wrote: On Sun, Jun 26, 2011 at 5:44 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 06/26/2011 12:31 PM, Adam Tong wrote: Hi, I wanted tu use php filters for validation to avoid regular expresions. Is it possible that FILTER_VALIDATE_URL only checks

Re: [PHP] Re: Php filter validate url

2011-06-27 Thread Plamen Ivanov
On Mon, Jun 27, 2011 at 11:14 AM, Shawn McKenzie nos...@mckenzies.net wrote: On 06/27/2011 10:01 AM, Plamen Ivanov wrote: On Sun, Jun 26, 2011 at 5:44 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 06/26/2011 12:31 PM, Adam Tong wrote: Hi, I wanted tu use php filters for validation to

Re: [PHP] Re: Php filter validate url

2011-06-27 Thread Jim Lucas
On 6/27/2011 8:25 AM, Plamen Ivanov wrote: On Mon, Jun 27, 2011 at 11:14 AM, Shawn McKenzie nos...@mckenzies.net wrote: On 06/27/2011 10:01 AM, Plamen Ivanov wrote: On Sun, Jun 26, 2011 at 5:44 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 06/26/2011 12:31 PM, Adam Tong wrote: Hi, I

[PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread With No Name
Hello, I try to code a Webinterface to access my Server @home which has a couple of UNIX users. However, I like to have only one website where users must go to whatch the content of there Folders, which mean, I need a maping which is not the problem but how must I make the Login/Passwd process,

Re: [PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread vikash . iitb
This may help: http://php.net/manual/en/book.ssh2.php Thanks, Vikash Kumar -- http://vika.sh On 27 June 2011 21:07, With No Name withnon...@tdwave.net wrote: Hello, I try to code a Webinterface to access my Server @home which has a couple of UNIX users. However, I like to have only one

Re: [PHP] Re: Php filter validate url

2011-06-27 Thread Plamen Ivanov
On Mon, Jun 27, 2011 at 11:34 AM, Jim Lucas li...@cmsws.com wrote: On 6/27/2011 8:25 AM, Plamen Ivanov wrote: On Mon, Jun 27, 2011 at 11:14 AM, Shawn McKenzie nos...@mckenzies.net wrote: On 06/27/2011 10:01 AM, Plamen Ivanov wrote: On Sun, Jun 26, 2011 at 5:44 PM, Shawn McKenzie

Re: [PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread With No Name
On Mon, June 27, 2011 5:41 pm, vikash.i...@gmail.com wrote: This may help: http://php.net/manual/en/book.ssh2.php Unfortunately not, I have only one server on my DSL and using ssh on the same host has a poor performance. I have tried it already and each download or directory change takes

[PHP] Benchmark two functions against each other?

2011-06-27 Thread Scott Baker
I have functions that I'd like to benchmark and compare. What are the best PHP libraries or websites to do that? Something like jsperf.com but for PHP would be ideal. - Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread Stuart Dallas
On Mon, Jun 27, 2011 at 5:27 PM, With No Name withnon...@tdwave.net wrote: SSH need arround 2-7 seconds to respond to a new connect. Not PHP-related, but you might want to try adding UseDNS no to your sshd_config file on the server. SSH connection delays are commonly caused by SSHd doing an

[PHP] PHP as CGI-CLI on FreeBSD/Apache22

2011-06-27 Thread Grant Peel
Hi all, Up to this point we have been running PHP as an Apache 22 module. We would like to rebuild PHP over the next few weeks to run it as a CGI/CLI PHPSuexec system. I am hoping there may be others that have made this migration and might have a step by step how to (so far research shows it

Re: [PHP] PHP as CGI-CLI on FreeBSD/Apache22

2011-06-27 Thread Nilesh Govindarajan
On 06/27/2011 10:13 PM, Grant Peel wrote: Hi all, Up to this point we have been running PHP as an Apache 22 module. We would like to rebuild PHP over the next few weeks to run it as a CGI/CLI PHPSuexec system. I am hoping there may be others that have made this migration and might have

Re: [PHP] Benchmark two functions against each other?

2011-06-27 Thread Stuart Dallas
On Mon, Jun 27, 2011 at 5:34 PM, Scott Baker bak...@canbytel.com wrote: I have functions that I'd like to benchmark and compare. What are the best PHP libraries or websites to do that? Something like jsperf.com but for PHP would be ideal. You're not going to find a service that will let you

Re: [PHP] Benchmark two functions against each other?

2011-06-27 Thread Scott Baker
On 06/27/2011 10:33 AM, Stuart Dallas wrote: You're not going to find a service that will let you do that - allowing arbitrary PHP to be entered into a website to be executed is far too dangerous. I would have thought so too but I found these: http://codepad.viper-7.com/ http://codepad.org/

Re: [PHP] Benchmark two functions against each other?

2011-06-27 Thread Stuart Dallas
On Mon, Jun 27, 2011 at 6:39 PM, Scott Baker bak...@canbytel.com wrote: On 06/27/2011 10:33 AM, Stuart Dallas wrote: You're not going to find a service that will let you do that - allowing arbitrary PHP to be entered into a website to be executed is far too dangerous. I would have

[PHP] help for memcached Segmentation fault

2011-06-27 Thread xucheng
Hi all, I wrap pecl-memcache into a class used as a sigleton class . the code is : ==code=== class Mem{ private static $_instance = null

[PHP] Re: help for memcached Segmentation fault

2011-06-27 Thread xucheng
sorry, the right $config['memcached'] variable is $config['memcached']=array(array('host'='localhost', port=11211, persistent=1,weight=1)); 2011/6/28 xucheng xuch...@sankuai.com: Hi all,       I wrap pecl-memcache into a class used as a sigleton class . the code is :

[PHP] header function odd behavior

2011-06-27 Thread H Rao
Hi, I am trying to understand odd(different) behavior of the header function under two different environments. Here is the code which I am trying to execute from two different servers ? header (Set-Cookie: c1=value1;path=/; domain=.domain.com); header (Set-Cookie: c2=value2;path=/;

Re: [PHP] header function odd behavior

2011-06-27 Thread Nilesh Govindarajan
On 06/28/2011 09:10 AM, H Rao wrote: Hi, I am trying to understand odd(different) behavior of the header function under two different environments. Here is the code which I am trying to execute from two different servers ? header (Set-Cookie: c1=value1;path=/; domain=.domain.com); header

[PHP] caching problem

2011-06-27 Thread Fatih P.
Hi guys, the code files are being cached. and modifications in methods are skipped and not executed. is there any parameter that i can pass it from ini file? this has been so annoying for me. restarting apache, windows, etc does not even help. im running apache 2.2.19, php ts 5.3.6 on windows

Re: [PHP] caching problem

2011-06-27 Thread Nilesh Govindarajan
On 06/28/2011 10:56 AM, Fatih P. wrote: Hi guys, the code files are being cached. and modifications in methods are skipped and not executed. is there any parameter that i can pass it from ini file? this has been so annoying for me. restarting apache, windows, etc does not even help. im

Re: [PHP] caching problem

2011-06-27 Thread Fatih P.
On Tue, Jun 28, 2011 at 7:40 AM, Nilesh Govindarajan cont...@nileshgr.comwrote: On 06/28/2011 10:56 AM, Fatih P. wrote: Hi guys, the code files are being cached. and modifications in methods are skipped and not executed. is there any parameter that i can pass it from ini file? this