php-general Digest 4 Apr 2013 08:57:05 -0000 Issue 8184

2013-04-04 Thread php-general-digest-help
php-general Digest 4 Apr 2013 08:57:05 - Issue 8184 Topics (messages 320758 through 320763): Re: webform spam prevention 320758 by: tamouse mailing lists 320761 by: jomali 320762 by: tamouse mailing lists 320763 by: Ashley Sheridan Re: PHP-FPM with Apache

Re: [PHP] webform spam prevention

2013-04-04 Thread Ashley Sheridan
On Wed, 2013-04-03 at 20:32 -0500, tamouse mailing lists wrote: I'd love to learn how to do that WITHOUT A MOUSE On Wed, Apr 3, 2013 at 8:10 PM, jomali jomali3...@gmail.com wrote: On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: These folks might

[PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 15:55 +0530, Ninad wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM,

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4,

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
Hi, I tried using Firebug got below response. Parametersapplication/x-www-form-urlencoded firstname |test| lastname|111| submit |Submit| Source |firstname=testlastname=111submit=Submit| Regards, Ninad On 04/04/2013 04:14 PM, Ashley Sheridan wrote:

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
yes you are right On 04/04/2013 04:23 PM, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hi, I am

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 16:33 +0530, Ninad wrote: I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
I've tried the same code on a instance with fedora 17 and php 5.4.13. It seems to work fine. Can you provide us a link with the url to your page ? On 04/04/2013 01:59 PM, Ninad wrote: yes you are right On 04/04/2013 04:23 PM, Sorin Badea wrote: So you have a single php file with the

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser restarted it also. but I am getting same result Regards, Ninad. On 04/04/2013 04:41 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:33 +0530,

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 16:41 +0530, Ninad wrote: yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser restarted it also. but I am getting same result Regards, Ninad. On 04/04/2013 04:41 PM,

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ninad
yes I tried on Firefox 3.5 firefox 19 chrome. On 04/04/2013 04:49 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:41 +0530, Ninad wrote: yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser

Re: [PHP] webform spam prevention

2013-04-04 Thread tamouse mailing lists
On Apr 4, 2013 3:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Captchas are not very accessible. Not only do you often need a near super-human ability to identify the scrawl that's displayed, but if you can't actually see very well to start with (maybe your vision isn't perfect or you

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Carsten Jensen
On 04/04/2013 01:19 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:41 +0530, Ninad wrote: Have you tried a different browser? Just thinking of anything which might narrow down the location of the problem. Thanks, Ash http://www.ashleysheridan.co.uk does PHP work at all? what do you

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Jim Giner
On 4/4/2013 7:02 AM, Ashley Sheridan wrote: I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) Thanks, Ash

[PHP] OAuth test server and help my slow brain understand what I'm doing.

2013-04-04 Thread Richard Quadling
Hi. I've been tasked to integrate some financial data into our site. The provider uses a 2 legged OAuth mechanism for the security. I have my consumer key and secret and the service end point, but I'm at a loss to even know if I'm doing anything right. Does anyone have a script that uses 2

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Jose Nobile
Hello, I wrote the question differently: How to redirect requests for .php files to PHP-FPM for all virtual hosts in Apache 2.4?http://stackoverflow.com/questions/15773901/how-to-redirect-requests-for-php-files-to-php-fpm-for-all-virtual-hosts-in-apac Thank you for your help. Saludos, José

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread ma...@behnke.biz
Ashley Sheridan a...@ashleysheridan.co.uk hat am 4. April 2013 um 13:02 geschrieben: I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname'])

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread ma...@behnke.biz
Ninad ninadsh...@iitb.ac.in hat am 4. April 2013 um 13:11 geschrieben: yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser restarted it also. but I am getting same result Could you take a look at

[PHP] Re: Empty $_POST after submit.

2013-04-04 Thread Jim Giner
I took your script and added some stuff. Call it testisset.php, upload it and try to run it. Script below - Please copy and run it EXACTLY as written: ?php error_reporting(E_ALL | E_STRICT); ini_set('display_errors', '1'); $errmsg = POST is:br; foreach($_POST as $k=$v) $errmsg .= $k

Re: [PHP] webform spam prevention

2013-04-04 Thread Maciek Sokolewicz
On 4-4-2013 14:27, tamouse mailing lists wrote: On Apr 4, 2013 3:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: One type I've seen (and use myself) which is gaining traction is that of asking for a human type of response to a question, or have them perform a simple mathematical

Re: [PHP] webform spam prevention

2013-04-04 Thread Terry Ally (Gmail)
I am running captcha but the problem that I am having is that fly-by-night SEO marketeers are using the form to send marketing messages anyway. We get so many spam messages that I put up in red letters on the form that we do not want cold-calling SEO marketing messages. Since that message there

Re: [PHP] webform spam prevention

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 19:29 +0100, Terry Ally (Gmail) wrote: I am running captcha but the problem that I am having is that fly-by-night SEO marketeers are using the form to send marketing messages anyway. We get so many spam messages that I put up in red letters on the form that we do not

Re: [PHP] webform spam prevention

2013-04-04 Thread Paul M Foster
On Thu, Apr 04, 2013 at 07:29:12PM +0100, Terry Ally (Gmail) wrote: I am running captcha but the problem that I am having is that fly-by-night SEO marketeers are using the form to send marketing messages anyway. We get so many spam messages that I put up in red letters on the form that we do

Re: [PHP] OAuth test server and help my slow brain understand what I'm doing.

2013-04-04 Thread Matijn Woudt
Hi, Have you tried Google? https://code.google.com/p/oauth-php/wiki/ConsumerHowTo http://developer.yahoo.com/blogs/ydn/two-legged-oauth-client-server-example-7922.html Seems both do the trick. - Matijn On Thu, Apr 4, 2013 at 3:49 PM, Richard Quadling rquadl...@gmail.comwrote: Hi. I've

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Matijn Woudt
On Wed, Apr 3, 2013 at 10:27 PM, Jose Nobile jose.nob...@gmail.com wrote: Hi, In Apache 2.2 http://httpd.apache.org/docs/2.2/ forward all request that point to phisical .php file to PHP-FPM http://php-fpm.org/ is as follow: LoadModule fastcgi_module http://www.fastcgi.com/

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Jose Nobile
How? If is required set the website path to PHP-FPM, from Apache Wiki: ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1 Saludos, José Nobile On Thu, Apr 4, 2013 at 3:15 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Apr 3, 2013 at 10:27 PM, Jose Nobile

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Matijn Woudt
On Thu, Apr 4, 2013 at 10:27 PM, Jose Nobile jose.nob...@gmail.com wrote: How? If is required set the website path to PHP-FPM, from Apache Wiki: ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1 Saludos, José Nobile with mod_proxy_fcgi you indeed need this line in each

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Jose Nobile
But we have two process manager, in Apache with mod_fastcgi and PHP-FPM? Saludos, José Nobile On Thu, Apr 4, 2013 at 4:27 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Apr 4, 2013 at 10:27 PM, Jose Nobile jose.nob...@gmail.comwrote: How? If is required set the website path to

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-04 Thread Matijn Woudt
On Thu, Apr 4, 2013 at 11:58 PM, Jose Nobile jose.nob...@gmail.com wrote: But we have two process manager, in Apache with mod_fastcgi and PHP-FPM? Saludos, José Nobile I'm not that familiar with PHP-FPM, but how would that be different from your Apache 2.2 setup?