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 2.4, forward all request for all virtual host
320759 by: tamouse mailing lists
320760 by: Jose Antonio Nobile Rendon

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---
These folks might have direction for you: http://textcaptcha.com/really

(And my apologies for top posting. It seems Google has forced their
new mail compose widget upon me. I can no longer use my own editor to
smoothly and easily edit message, and Google forces the top post.)

On Tue, Apr 2, 2013 at 2:13 PM, Jen Rasmussen j...@cetaceasound.com wrote:
 Can someone recommend a best practice for blocking spam on web forms (aside
 from captcha) ?



 I've been for the most part utilizing a honeypot method and then
 individually blocking IPs and am looking for a more efficient method that
 won't require daily maintenance.



 I've come across this module: http://spam-ip.com/phpnuke-spam-module.php



 Has anyone used this method or have any other better suggestions?



 Thanks in advance!



 Jen Rasmussen

 Web Development Manager | Cetacea Sound Corp.

 763-225-8465 | www.cetaceasound.com


 P Before printing this message, make sure that it's necessary. The
 environment is in your hands



---End Message---
---BeginMessage---
On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists 
tamouse.li...@gmail.com wrote:

 These folks might have direction for you: http://textcaptcha.com/really

 (And my apologies for top posting. It seems Google has forced their
 new mail compose widget upon me. I can no longer use my own editor to
 smoothly and easily edit message, and Google forces the top post.)


Actually, it doesn't, as I show below.


 On Tue, Apr 2, 2013 at 2:13 PM, Jen Rasmussen j...@cetaceasound.com
 wrote:
  Can someone recommend a best practice for blocking spam on web forms
 (aside
  from captcha) ?
 
 
 
  I've been for the most part utilizing a honeypot method and then
  individually blocking IPs and am looking for a more efficient method that
  won't require daily maintenance.
 
 
 
  I've come across this module: http://spam-ip.com/phpnuke-spam-module.php
 
 
 
  Has anyone used this method or have any other better suggestions?
 
 
 
  Thanks in advance!
 
 
 
  Jen Rasmussen
 
  Web Development Manager | Cetacea Sound Corp.
 
  763-225-8465 | www.cetaceasound.com
 
 
  P Before printing this message, make sure that it's necessary. The
  environment is in your hands
 
 
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



Actually, it doesn't. All you have to do is scroll to the bottom and add
your material.
---End Message---
---BeginMessage---
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 have direction for you: http://textcaptcha.com/really

 (And my apologies for top posting. It seems Google has forced their
 new mail compose widget upon me. I can no longer use my own editor to
 smoothly and easily edit message, and Google forces the top post.)


 Actually, it doesn't, as I show below.


 On Tue, Apr 2, 2013 at 2:13 PM, Jen Rasmussen j...@cetaceasound.com
 wrote:
  Can someone recommend a best practice for blocking spam on web forms
  (aside
  from captcha) ?
 
 
 
  I've been for the most part utilizing a honeypot method and then
  individually blocking IPs and am looking for a more efficient method
  that
  won't require daily maintenance.
 
 
 
  I've come across this module: http://spam-ip.com/phpnuke-spam-module.php
 
 
 
  Has anyone used this method or have any other better suggestions?
 
 
 
  Thanks in advance!
 
 
 
  Jen Rasmussen
 
  Web Development Manager | Cetacea Sound Corp.
 
  763-225-8465 | www.cetaceasound.com
 
 
  P Before printing this message, make sure that it's necessary. The
  environment is in your hands
 
 
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



 Actually, it doesn't. All you have to do is scroll to the bottom and add
 your material.
---End Message---
---BeginMessage---
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 

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 have direction for you: http://textcaptcha.com/really
 
  (And my apologies for top posting. It seems Google has forced their
  new mail compose widget upon me. I can no longer use my own editor to
  smoothly and easily edit message, and Google forces the top post.)
 
 
  Actually, it doesn't, as I show below.
 
 
  On Tue, Apr 2, 2013 at 2:13 PM, Jen Rasmussen j...@cetaceasound.com
  wrote:
   Can someone recommend a best practice for blocking spam on web forms
   (aside
   from captcha) ?
  
  
  
   I've been for the most part utilizing a honeypot method and then
   individually blocking IPs and am looking for a more efficient method
   that
   won't require daily maintenance.
  
  
  
   I've come across this module: http://spam-ip.com/phpnuke-spam-module.php
  
  
  
   Has anyone used this method or have any other better suggestions?
  
  
  
   Thanks in advance!
  
  
  
   Jen Rasmussen
  
   Web Development Manager | Cetacea Sound Corp.
  
   763-225-8465 | www.cetaceasound.com
  
  
   P Before printing this message, make sure that it's necessary. The
   environment is in your hands
  
  
  
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
  Actually, it doesn't. All you have to do is scroll to the bottom and add
  your material.
 


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 can't see at all) then you have to fall back to the audio
replacement offered by the captcha. I've tried listening to some, and
they are awful.

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 problem, where the numbers are replaced with
something else.

Thanks,
Ash
http://www.ashleysheridan.co.uk




[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 variable empty.


Please guide me in the same.


?php
if (isset($_POST['lastname'], $_POST['lastname']))
{
   echo(First name:  . $_POST['firstname'] . br /\n);
   echo(Last name:  . $_POST['lastname'] . br /\n);
}
?

html
head
/head
body
form action=index.php method=post
   pFirst name: input type=text name=firstname //p
   pLast name: input type=text name=lastname //p
   input type=submit name=submit value=Submit /
/form
/body
/html


Thanks  Regards,
Ninad.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 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 variable empty.

 Please guide me in the same.


 ?php
 if (isset($_POST['lastname'], $_POST['lastname']))
 {
echo(First name:  . $_POST['firstname'] . br /\n);
echo(Last name:  . $_POST['lastname'] . br /\n);
 }
 ?

 html
 head
 /head
 body
 form action=index.php method=post
pFirst name: input type=text name=firstname //p
pLast name: input type=text name=lastname //p
input type=submit name=submit value=Submit /
 /form
 /body
 /html


 Thanks  Regards,
 Ninad.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Badea Sorin (unu.sorin)
sorin.bade...@gmail.com
unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com


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 var_dump ?


On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in 
mailto: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 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 variable empty.

Please guide me in the same.


?php
if (isset($_POST['lastname'], $_POST['lastname']))
{
   echo(First name:  . $_POST['firstname'] . br /\n);
   echo(Last name:  . $_POST['lastname'] . br /\n);
}
?

html
head
/head
body
form action=index.php method=post
   pFirst name: input type=text name=firstname //p
   pLast name: input type=text name=lastname //p
   input type=submit name=submit value=Submit /
/form
/body
/html


Thanks  Regards,
Ninad.

-- 
PHP General Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php




--
Badea Sorin (unu.sorin)
sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com mailto:unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com




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, Sorin Badea wrote:
  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 
  mailto: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 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 variable empty.
 
  Please guide me in the same.
 
 
  ?php
  if (isset($_POST['lastname'], $_POST['lastname']))
  {
 echo(First name:  . $_POST['firstname'] . br /\n);
 echo(Last name:  . $_POST['lastname'] . br /\n);
  }
  ?
 
  html
  head
  /head
  body
  form action=index.php method=post
 pFirst name: input type=text name=firstname //p
 pLast name: input type=text name=lastname //p
 input type=submit name=submit value=Submit /
  /form
  /body
  /html
 
 
  Thanks  Regards,
  Ninad.
 
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
  -- 
  Badea Sorin (unu.sorin)
  sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com
  unu_so...@yahoo.com mailto:unu_so...@yahoo.com
  Pagina personala:
  http://badeasorin.com
 


Have you used the network inspector of your browser to see if what you
think is being sent is really being sent? Firefox and Chrome come with
these tools built in now.

Thanks,
Ash
http://www.ashleysheridan.co.uk




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 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 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 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 variable empty.

 Please guide me in the same.


 ?php
 if (isset($_POST['lastname'], $_POST['lastname']))
 {
echo(First name:  . $_POST['firstname'] . br /\n);
echo(Last name:  . $_POST['lastname'] . br /\n);
 }
 ?

 html
 head
 /head
 body
 form action=index.php method=post
pFirst name: input type=text name=firstname //p
pLast name: input type=text name=lastname //p
input type=submit name=submit value=Submit /
 /form
 /body
 /html


 Thanks  Regards,
 Ninad.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




  --
 Badea Sorin (unu.sorin)
 sorin.bade...@gmail.com
 unu_so...@yahoo.com
 Pagina personala:
 http://badeasorin.com





-- 
Badea Sorin (unu.sorin)
sorin.bade...@gmail.com
unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com


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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in 
mailto:ninadsh...@iitb.ac.in 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, Sorin Badea wrote:

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
mailto: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 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 variable empty.

Please guide me in the same.


?php
if (isset($_POST['lastname'], $_POST['lastname']))
{
   echo(First name:  . $_POST['firstname'] . br /\n);
   echo(Last name:  . $_POST['lastname'] . br /\n);
}
?

html
head
/head
body
form action=index.php method=post
   pFirst name: input type=text name=firstname //p
   pLast name: input type=text name=lastname //p
   input type=submit name=submit value=Submit /
/form
/body
/html


Thanks  Regards,
Ninad.

-- 
PHP General Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Badea Sorin (unu.sorin)

sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com mailto:unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com





--
Badea Sorin (unu.sorin)
sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com mailto:unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com




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:

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, Sorin Badea wrote:
 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  mailto:ninadsh...@iitb.ac.in  
 mailto: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 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 variable empty.

 Please guide me in the same.


 ?php
 if (isset($_POST['lastname'], $_POST['lastname']))
 {
echo(First name:  . $_POST['firstname'] . br /\n);
echo(Last name:  . $_POST['lastname'] . br /\n);
 }
 ?

 html
 head
 /head
 body
 form action=index.php method=post
pFirst name: input type=text name=firstname //p
pLast name: input type=text name=lastname //p
input type=submit name=submit value=Submit /
 /form
 /body
 /html


 Thanks  Regards,
 Ninad.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit:http://www.php.net/unsub.php




 --
 Badea Sorin (unu.sorin)
sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com  
mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com  mailto:unu_so...@yahoo.com  mailto:unu_so...@yahoo.com
 Pagina personala:
http://badeasorin.com



Have you used the network inspector of your browser to see if what you 
think is being sent is really being sent? Firefox and Chrome come with 
these tools built in now.


Thanks,
Ash
http://www.ashleysheridan.co.uk






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 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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in 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, Sorin Badea wrote:

 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 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 variable empty.

 Please guide me in the same.


 ?php
 if (isset($_POST['lastname'], $_POST['lastname']))
 {
echo(First name:  . $_POST['firstname'] . br /\n);
echo(Last name:  . $_POST['lastname'] . br /\n);
 }
 ?

 html
 head
 /head
 body
 form action=index.php method=post
pFirst name: input type=text name=firstname //p
pLast name: input type=text name=lastname //p
input type=submit name=submit value=Submit /
 /form
 /body
 /html


 Thanks  Regards,
 Ninad.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




  --
 Badea Sorin (unu.sorin)
 sorin.bade...@gmail.com
 unu_so...@yahoo.com
 Pagina personala:
 http://badeasorin.com





  --
 Badea Sorin (unu.sorin)
 sorin.bade...@gmail.com
 unu_so...@yahoo.com
 Pagina personala:
 http://badeasorin.com





-- 
Badea Sorin (unu.sorin)
sorin.bade...@gmail.com
unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com


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 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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in 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, Sorin Badea wrote:
 
  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 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 variable empty.
 
  Please guide me in the same.
 
 
  ?php
  if (isset($_POST['lastname'], $_POST['lastname']))
  {
 echo(First name:  . $_POST['firstname'] . br /\n);
 echo(Last name:  . $_POST['lastname'] . br /\n);
  }
  ?
 
  html
  head
  /head
  body
  form action=index.php method=post
 pFirst name: input type=text name=firstname //p
 pLast name: input type=text name=lastname //p
 input type=submit name=submit value=Submit /
  /form
  /body
  /html
 
 
  Thanks  Regards,
  Ninad.
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
   --
  Badea Sorin (unu.sorin)
  sorin.bade...@gmail.com
  unu_so...@yahoo.com
  Pagina personala:
  http://badeasorin.com
 
 
 
 
 
   --
  Badea Sorin (unu.sorin)
  sorin.bade...@gmail.com
  unu_so...@yahoo.com
  Pagina personala:
  http://badeasorin.com
 
 
 
 
 


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
http://www.ashleysheridan.co.uk




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 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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in
mailto:ninadsh...@iitb.ac.in 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, Sorin Badea wrote:

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
mailto: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 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
variable empty.

Please guide me in the same.


?php
if (isset($_POST['lastname'], $_POST['lastname']))
{
   echo(First name:  . $_POST['firstname'] . br /\n);
   echo(Last name:  . $_POST['lastname'] . br /\n);
}
?

html
head
/head
body
form action=index.php method=post
   pFirst name: input type=text name=firstname //p
   pLast name: input type=text name=lastname //p
   input type=submit name=submit value=Submit /
/form
/body
/html


Thanks  Regards,
Ninad.

-- 
PHP General Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Badea Sorin (unu.sorin)

sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com mailto:unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com





-- 
Badea Sorin (unu.sorin)

sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com mailto:unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com





--
Badea Sorin (unu.sorin)
sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com mailto:unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com




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 PM, Ninad ninadsh...@iitb.ac.in  
mailto: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 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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in  
mailto:ninadsh...@iitb.ac.in 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, Sorin Badea wrote:

 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  
mailto: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 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 variable empty.

 Please guide me in the same.


 ?php
 if (isset($_POST['lastname'], $_POST['lastname']))
 {
echo(First name:  . $_POST['firstname'] . br /\n);
echo(Last name:  . $_POST['lastname'] . br /\n);
 }
 ?

 html
 head
 /head
 body
 form action=index.php method=post
pFirst name: input type=text name=firstname //p
pLast name: input type=text name=lastname //p
input type=submit name=submit value=Submit /
 /form
 /body
 /html


 Thanks  Regards,
 Ninad.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit:http://www.php.net/unsub.php




  --
 Badea Sorin (unu.sorin)
sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com  mailto:unu_so...@yahoo.com
 Pagina personala:
http://badeasorin.com





  --
 Badea Sorin (unu.sorin)
sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com  mailto:unu_so...@yahoo.com
 Pagina personala:
http://badeasorin.com







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
http://www.ashleysheridan.co.uk






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 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 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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in  
   mailto:ninadsh...@iitb.ac.in 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, Sorin Badea wrote:
  
   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  
   mailto: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 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 variable empty.
  
   Please guide me in the same.
  
  
   ?php
   if (isset($_POST['lastname'], $_POST['lastname']))
   {
  echo(First name:  . $_POST['firstname'] . br /\n);
  echo(Last name:  . $_POST['lastname'] . br /\n);
   }
   ?
  
   html
   head
   /head
   body
   form action=index.php method=post
  pFirst name: input type=text name=firstname //p
  pLast name: input type=text name=lastname //p
  input type=submit name=submit value=Submit /
   /form
   /body
   /html
  
  
   Thanks  Regards,
   Ninad.
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit:http://www.php.net/unsub.php
  
  
  
  
--
   Badea Sorin (unu.sorin)
  sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com
  unu_so...@yahoo.com  mailto:unu_so...@yahoo.com
   Pagina personala:
  http://badeasorin.com
  
  
  
  
  
--
   Badea Sorin (unu.sorin)
  sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com
  unu_so...@yahoo.com  mailto:unu_so...@yahoo.com
   Pagina personala:
  http://badeasorin.com
  
  
  
 
 
 
  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
  http://www.ashleysheridan.co.uk
 
 
 


This is really starting to sound like some sort of weird bug somewhere.
I know this is the typical IT response, but have you tried restarting
Apache? Also, this shouldn't happen, but try restarting your browser
too. Maybe it's exhibiting some strange cache bug.

Thanks,
Ash
http://www.ashleysheridan.co.uk




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 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 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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in
mailto:ninadsh...@iitb.ac.in 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, Sorin Badea wrote:

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 mailto: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 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 variable empty.

Please guide me in the same.


?php
if (isset($_POST['lastname'], $_POST['lastname']))
{
   echo(First name:  . $_POST['firstname'] . br /\n);
   echo(Last name:  . $_POST['lastname'] . br /\n);
}
?

html
head
/head
body
form action=index.php method=post
   pFirst name: input type=text name=firstname
//p
   pLast name: input type=text name=lastname //p
   input type=submit name=submit value=Submit /
/form
/body
/html


Thanks  Regards,
Ninad.

-- 
PHP General Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Badea Sorin (unu.sorin)

sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com mailto:unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com





-- 
Badea Sorin (unu.sorin)

sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com mailto:unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com





--
Badea Sorin (unu.sorin)
sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com
unu_so...@yahoo.com mailto:unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com






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, 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 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   mailto: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 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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in  
mailto:ninadsh...@iitb.ac.in   mailto:ninadsh...@iitb.ac.in 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, Sorin Badea wrote:
 
  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  
mailto:ninadsh...@iitb.ac.in   mailto: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 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 variable empty.
 
  Please guide me in the same.
 
 
  ?php
  if (isset($_POST['lastname'], $_POST['lastname']))
  {
 echo(First name:  . $_POST['firstname'] . br /\n);
 echo(Last name:  . $_POST['lastname'] . br /\n);
  }
  ?
 
  html
  head
  /head
  body
  form action=index.php method=post
 pFirst name: input type=text name=firstname //p
 pLast name: input type=text name=lastname //p
 input type=submit name=submit value=Submit /
  /form
  /body
  /html
 
 
  Thanks  Regards,
  Ninad.
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit:http://www.php.net/unsub.php
 
 
 
 
   --
  Badea Sorin (unu.sorin)
 sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com   
mailto:sorin.bade...@gmail.com
 unu_so...@yahoo.com  mailto:unu_so...@yahoo.com   
mailto:unu_so...@yahoo.com
  Pagina personala:
 http://badeasorin.com
 
 
 
 
 
   --
  Badea Sorin (unu.sorin)
 sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com   
mailto:sorin.bade...@gmail.com
 unu_so...@yahoo.com  mailto:unu_so...@yahoo.com   
mailto:unu_so...@yahoo.com
  Pagina personala:
 http://badeasorin.com
 
 
 



 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
http://www.ashleysheridan.co.uk





This is really starting to sound like some sort of weird bug 
somewhere. I know this is the typical IT response, but have you tried 
restarting Apache? Also, this shouldn't happen, but try restarting 
your browser too. Maybe it's exhibiting some strange cache bug.


Thanks,
Ash
http://www.ashleysheridan.co.uk






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, Ashley Sheridan wrote:
  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 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   mailto: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 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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in  
mailto:ninadsh...@iitb.ac.in   mailto:ninadsh...@iitb.ac.in 
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, Sorin Badea wrote:
   
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  
mailto:ninadsh...@iitb.ac.in   mailto: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 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 variable empty.
   
Please guide me in the same.
   
   
?php
if (isset($_POST['lastname'], $_POST['lastname']))
{
   echo(First name:  . $_POST['firstname'] . br /\n);
   echo(Last name:  . $_POST['lastname'] . br /\n);
}
?
   
html
head
/head
body
form action=index.php method=post
   pFirst name: input type=text name=firstname //p
   pLast name: input type=text name=lastname //p
   input type=submit name=submit value=Submit /
/form
/body
/html
   
   
Thanks  Regards,
Ninad.
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:http://www.php.net/unsub.php
   
   
   
   
 --
Badea Sorin (unu.sorin)
   sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com   
   mailto:sorin.bade...@gmail.com
   unu_so...@yahoo.com  mailto:unu_so...@yahoo.com   
   mailto:unu_so...@yahoo.com
Pagina personala:
   http://badeasorin.com
   
   
   
   
   
 --
Badea Sorin (unu.sorin)
   sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com   
   mailto:sorin.bade...@gmail.com
   unu_so...@yahoo.com  mailto:unu_so...@yahoo.com   
   mailto:unu_so...@yahoo.com
Pagina personala:
   http://badeasorin.com
   
   
   
  
  
  
   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
  http://www.ashleysheridan.co.uk
  
  
 
 
  This is really starting to sound like some sort of weird bug 
  somewhere. I know this is the typical IT response, but have you tried 
  restarting Apache? Also, this shouldn't happen, but try restarting 
  your browser too. Maybe it's exhibiting some strange cache bug.
 
  Thanks,
  Ash
  http://www.ashleysheridan.co.uk
 
 
 


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




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  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, 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 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   mailto:ninadsh...@iitb.ac.in   
mailto: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 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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in  
mailto:ninadsh...@iitb.ac.in   mailto:ninadsh...@iitb.ac.in   mailto:ninadsh...@iitb.ac.in 
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, Sorin Badea wrote:
  
   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  
mailto:ninadsh...@iitb.ac.in   mailto:ninadsh...@iitb.ac.in   mailto: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 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 variable empty.
  
   Please guide me in the same.
  
  
   ?php
   if (isset($_POST['lastname'], $_POST['lastname']))
   {
  echo(First name:  . $_POST['firstname'] . br /\n);
  echo(Last name:  . $_POST['lastname'] . br /\n);
   }
   ?
  
   html
   head
   /head
   body
   form action=index.php method=post
  pFirst name: input type=text name=firstname //p
  pLast name: input type=text name=lastname //p
  input type=submit name=submit value=Submit /
   /form
   /body
   /html
  
  
   Thanks  Regards,
   Ninad.
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit:http://www.php.net/unsub.php
  
  
  
  
--
   Badea Sorin (unu.sorin)
  sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com   
mailto:sorin.bade...@gmail.com   mailto:sorin.bade...@gmail.com
  unu_so...@yahoo.com  mailto:unu_so...@yahoo.com   
mailto:unu_so...@yahoo.com   mailto:unu_so...@yahoo.com
   Pagina personala:
  http://badeasorin.com
  
  
  
  
  
--
   Badea Sorin (unu.sorin)
  sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com   
mailto:sorin.bade...@gmail.com   mailto:sorin.bade...@gmail.com
  unu_so...@yahoo.com  mailto:unu_so...@yahoo.com   
mailto:unu_so...@yahoo.com   mailto:unu_so...@yahoo.com
   Pagina personala:
  http://badeasorin.com
  
  
  
 
 
 
  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
 http://www.ashleysheridan.co.uk
 
 


 This is really starting to sound like some sort of weird bug
 somewhere. I know this is the typical IT response, but have you tried
 restarting Apache? Also, this shouldn't happen, but try restarting
 your browser too. Maybe it's exhibiting some strange cache bug.

 Thanks,
 Ash
http://www.ashleysheridan.co.uk





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






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 can't see at all) then you have to fall back to the audio
replacement offered by the captcha. I've tried listening to some, and they
are awful.

That is the premise behind what the folks at textcaptcha are doing, going
so far as to question the need for captcha itself


 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 problem, where the numbers are replaced with something
else.


Those can be great. The sticky part seems to be i18n and common user
experience to answer the question, but this seem much easier to work with
then throwing something horrible at your users.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk




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 get any output of (create this file with the content)

info.php

?php echo phpinfo(); ?




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
http://www.ashleysheridan.co.uk



Even more odd is that the statement is checking the SAME variable twice. 
 Why?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 legged OAuth I can use to make sure
I'm doing it right and to be able to just substitute my keys and end point
as a test to the service I need.

Alternatively, if any one has done a 2 legged OAuth using pecl/oauth, then
please can you give me a few pointers!

Any help would be great!

Regards,

Richard.


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é Nobile


On Wed, Apr 3, 2013 at 6:50 PM, Jose Antonio Nobile Rendon 
jose.nob...@gmail.com wrote:

 How to forward all request to files .php of any virtual host to
 PHP-FPM in Apache 2.4? Not each one.

 Saludos,
 Jose Nobile
 -Mensaje original-
 De: tamouse mailing lists
 Enviado:  03/04/2013, 6:35  PM
 Para: Jose Nobile
 Cc: php-general@lists.php.net
 Asunto: Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all
 virtual host


 Sorry, in all of that, I don't see what the question is?

 On Wed, Apr 3, 2013 at 3: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/
 modules/mod_fastcgi.so
 
  FastCGIExternalServer /usr/sbin/php-fpm -socket
  /usr/local/php/lib/php.sock -idle-timeout 900AddHandler php-fastcgi
  .phpAction php-fastcgi /usr/sbin/php-fpm.fcgiScriptAlias
  /usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm
 
   But in Apache 2.4 http://httpd.apache.org/docs/2.4/ is different, I'm
  following the tutorial in Apache Wiki
  http://wiki.apache.org/httpd/PHP-FPM but
  I don't understand as enable PHP for all virtual host, not each one.
 
  I search in PHP documentation, there is not mention about install on
 Apache
  2.4:
 
 - Install PHP on Apache 2.x on Unix
  systemshttp://www.php.net/manual/en/install.unix.apache2.php
 - PHP-FPM Install 
 http://www.php.net/manual/en/install.fpm.install.php
 - PHP-FPM Documentation http://php-fpm.org/wiki/Documentation
 
  This question was initially posted on stackoverflow:
 
 
 http://stackoverflow.com/questions/15773901/php-fpm-with-apache-2-4-forward-all-request-for-all-virtual-host
 
  Thank you for your help.
 
  Saludos,
  José Nobile



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'])  isset($_POST['lastname']))


No, this is totally valid to check if all values are set

 If multiple parameters are supplied then isset() will return TRUE only if all
 of the parameters are set. Evaluation goes from left to right and stops as
 soon as an unset variable is encountered.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 the output of

var_dump($_POST);
var_dump($_GET);
var_dump($_REQUEST);


 Regards,
 Ninad.

 On 04/04/2013 04:41 PM, Ashley Sheridan wrote:
  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 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   mailto: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 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, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in
 mailto:ninadsh...@iitb.ac.in   mailto:ninadsh...@iitb.ac.in
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, Sorin Badea wrote:
   
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
 mailto:ninadsh...@iitb.ac.in   mailto: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 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 variable empty.
   
Please guide me in the same.
   
   
?php
if (isset($_POST['lastname'], $_POST['lastname']))
{
   echo(First name:  . $_POST['firstname'] . br /\n);
   echo(Last name:  . $_POST['lastname'] . br /\n);
}
?
   
html
head
/head
body
form action=index.php method=post
   pFirst name: input type=text name=firstname //p
   pLast name: input type=text name=lastname //p
   input type=submit name=submit value=Submit /
/form
/body
/html
   
   
Thanks  Regards,
Ninad.
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:http://www.php.net/unsub.php
   
   
   
   
 --
Badea Sorin (unu.sorin)
   sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com
 mailto:sorin.bade...@gmail.com
   unu_so...@yahoo.com  mailto:unu_so...@yahoo.com
 mailto:unu_so...@yahoo.com
Pagina personala:
   http://badeasorin.com
   
   
   
   
   
 --
Badea Sorin (unu.sorin)
   sorin.bade...@gmail.com  mailto:sorin.bade...@gmail.com
 mailto:sorin.bade...@gmail.com
   unu_so...@yahoo.com  mailto:unu_so...@yahoo.com
 mailto:unu_so...@yahoo.com
Pagina personala:
   http://badeasorin.com
   
   
   
  
  
  
   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
  http://www.ashleysheridan.co.uk
  
  
 
 
  This is really starting to sound like some sort of weird bug
  somewhere. I know this is the typical IT response, but have you tried
  restarting Apache? Also, this shouldn't happen, but try restarting
  your browser too. Maybe it's exhibiting some strange cache bug.
 
  Thanks,
  Ash
  http://www.ashleysheridan.co.uk
 
 


--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: ma...@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 is $vbr;
if (isset($_POST['submit']))
{
if (isset($_POST['lastname'], $_POST['lastname']))
{
echo isset is truebr;
echo Entered values are:br;
		echo(First name: ' . $_POST['firstname'].' -  . 
strlen($_POST['firstname']). chars longbr /);
		echo(Last name: ' . $_POST['lastname'].' -  . 
strlen($_POST['lastname']). chars long br /);

echo $errmsg;
}
}
else
{
$code=heredocs
html
head
/head
body onload=document.thisform.firstname.focus()
Data Entry Form:br
form name=thisform action=testisset.php method=post
  First name: input type=text tabindex=1 name=firstname /br
  Last name: input type=text tabindex=2 name=lastname /br
  input type=submit name=submit tabindex=3 value=Submit /
/form
$errmsg
/body
/html
heredocs;
echo $code;
}
exit();

***
On the initial execution you should see your input form and the POST 
values will be missing (no vars at all).


Once you enter anything and hit Submit your will see your top two 
displays followed by the contents of the POST array which should show 
something at that time.  If not - you have a configuration problem.


Note:  While I questioned your isset test method (testing the same var 
twice?), I used it in this script just as you did.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 problem, where the numbers are replaced with something
else.




Those can be great. The sticky part seems to be i18n and common user
experience to answer the question, but this seem much easier to work with
then throwing something horrible at your users.



Still, questions like Does the sun rise in the morning or evening? or 
Is the sky usually blue or red? should be answerable by pretty much 
any human capable of understanding at least very basic things. I'm 
pretty sure that even if you have a severely reduced mental capacity, 
you can still answer these types of questions. And if you can't, you 
usually are in the wrong place anyway.


- Tul

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 has
been a significant reduction in emails from legitimate SEO companies.

However there is an upsurge in fly-by-night individuals who are all using
Gmail addresses and originating in the USA. It seems as though someone is
selling them a database of websites to contact.

I wish there was a way of dealing with these people who evidently cannot
read. Is there a technological solution?




On 4 April 2013 17:28, Maciek Sokolewicz tula...@php.net wrote:

 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 problem, where the numbers are replaced with something
 else.



 Those can be great. The sticky part seems to be i18n and common user
 experience to answer the question, but this seem much easier to work with
 then throwing something horrible at your users.


 Still, questions like Does the sun rise in the morning or evening? or
 Is the sky usually blue or red? should be answerable by pretty much any
 human capable of understanding at least very basic things. I'm pretty sure
 that even if you have a severely reduced mental capacity, you can still
 answer these types of questions. And if you can't, you usually are in the
 wrong place anyway.

 - Tul

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
*Terry Ally*
Twitter.com/terryally
Facebook.com/terryally
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
To print or not to print this email is the environmentally-searching
question!
Which has the highest ecological cost? A sheet of paper or constantly
switching on your computer and connecting to the Internet to read your
email?


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 want cold-calling SEO marketing messages. Since that message there has
 been a significant reduction in emails from legitimate SEO companies.
 
 However there is an upsurge in fly-by-night individuals who are all using
 Gmail addresses and originating in the USA. It seems as though someone is
 selling them a database of websites to contact.
 
 I wish there was a way of dealing with these people who evidently cannot
 read. Is there a technological solution?
 
 
 
 
 On 4 April 2013 17:28, Maciek Sokolewicz tula...@php.net wrote:
 
  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 problem, where the numbers are replaced with something
  else.
 
 
 
  Those can be great. The sticky part seems to be i18n and common user
  experience to answer the question, but this seem much easier to work with
  then throwing something horrible at your users.
 
 
  Still, questions like Does the sun rise in the morning or evening? or
  Is the sky usually blue or red? should be answerable by pretty much any
  human capable of understanding at least very basic things. I'm pretty sure
  that even if you have a severely reduced mental capacity, you can still
  answer these types of questions. And if you can't, you usually are in the
  wrong place anyway.
 
  - Tul
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 


They probably aren't using a paid for list but getting a list of contact
forms from a web search. I still maintain that asking some sort of
question that only a human could answer is best, and that doesn't mean a
tradition captcha like ReCaptcha. That's proved easier for bots to fill
than humans now!

Thanks,
Ash
http://www.ashleysheridan.co.uk




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
 not want cold-calling SEO marketing messages. Since that message there has
 been a significant reduction in emails from legitimate SEO companies.

legitimate SEO companies

ROTFL! (Oh, sorry, did I say that out loud?)

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 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 legged OAuth I can use to make sure
 I'm doing it right and to be able to just substitute my keys and end point
 as a test to the service I need.

 Alternatively, if any one has done a 2 legged OAuth using pecl/oauth, then
 please can you give me a few pointers!

 Any help would be great!

 Regards,

 Richard.



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/ modules/mod_fastcgi.so

 FastCGIExternalServer /usr/sbin/php-fpm -socket
 /usr/local/php/lib/php.sock -idle-timeout 900AddHandler php-fastcgi
 .phpAction php-fastcgi /usr/sbin/php-fpm.fcgiScriptAlias
 /usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm

  But in Apache 2.4 http://httpd.apache.org/docs/2.4/ is different, I'm
 following the tutorial in Apache Wiki
 http://wiki.apache.org/httpd/PHP-FPM but
 I don't understand as enable PHP for all virtual host, not each one.

 I search in PHP documentation, there is not mention about install on Apache
 2.4:

- Install PHP on Apache 2.x on Unix
 systemshttp://www.php.net/manual/en/install.unix.apache2.php
- PHP-FPM Install http://www.php.net/manual/en/install.fpm.install.php
 
- PHP-FPM Documentation http://php-fpm.org/wiki/Documentation

 This question was initially posted on stackoverflow:


 http://stackoverflow.com/questions/15773901/php-fpm-with-apache-2-4-forward-all-request-for-all-virtual-host

 Thank you for your help.

 Saludos,
 José Nobile



Hi,

You should follow the instructions on the Apache site, and just place all
settings outside of the virtualhost (eg. in httpd.conf).

- Matijn


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 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/
 modules/mod_fastcgi.so
 
  FastCGIExternalServer /usr/sbin/php-fpm -socket
  /usr/local/php/lib/php.sock -idle-timeout 900AddHandler php-fastcgi
  .phpAction php-fastcgi /usr/sbin/php-fpm.fcgiScriptAlias
  /usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm
 
   But in Apache 2.4 http://httpd.apache.org/docs/2.4/ is different, I'm
  following the tutorial in Apache Wiki
  http://wiki.apache.org/httpd/PHP-FPM but
  I don't understand as enable PHP for all virtual host, not each one.
 
  I search in PHP documentation, there is not mention about install on
 Apache
  2.4:
 
 - Install PHP on Apache 2.x on Unix
  systemshttp://www.php.net/manual/en/install.unix.apache2.php
 - PHP-FPM Install 
 http://www.php.net/manual/en/install.fpm.install.php
  
 - PHP-FPM Documentation http://php-fpm.org/wiki/Documentation
 
  This question was initially posted on stackoverflow:
 
 
 
 http://stackoverflow.com/questions/15773901/php-fpm-with-apache-2-4-forward-all-request-for-all-virtual-host
 
  Thank you for your help.
 
  Saludos,
  José Nobile
 


 Hi,

 You should follow the instructions on the Apache site, and just place all
 settings outside of the virtualhost (eg. in httpd.conf).

 - Matijn



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 vhost. If you don't
want this, then you need to use something else, like mod_fastcgi or
mod_cgid?
mod_cgid should work out of the box, with mod_fastci you might to compile
this version for Apache 2.4:
https://github.com/ByteInternet/libapache-mod-fastcgi

- Matijn


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 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 vhost. If you don't
 want this, then you need to use something else, like mod_fastcgi or
 mod_cgid?
 mod_cgid should work out of the box, with mod_fastci you might to compile
 this version for Apache 2.4:
 https://github.com/ByteInternet/libapache-mod-fastcgi

 - Matijn



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?