[PHP] required return on pecl install pam

2010-08-18 Thread fakessh
hello guru off php pecl pam seems little buggy http://pecl.php.net/bugs/bug.php?id=16995 you are coming to run this extension I'm listening and indication of any return please help me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Andrew Mason
On Thu, Aug 19, 2010 at 7:41 AM, Daevid Vincent wrote: > You've got something jacked. DO NOT proceed with your coding using this > hack. > > Put this in a blank file named whatever_you_want.php and hit it with your > web browser. > >

RE: [PHP] Can't read $_POST array

2010-08-18 Thread Daevid Vincent
You've got something jacked. DO NOT proceed with your coding using this hack. Put this in a blank file named whatever_you_want.php and hit it with your web browser. --- - foo ba

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Brian Dunning
This was the complete code of the page (this is the POST version not the REQUEST version): Returns an empty array no matter what POST vars are sent. We fixed it by changing it to this, which I've never even heard of, but so far is working perfectly: I have no idea what the problem was. Tha

Re: [PHP] Can't read $_POST array

2010-08-18 Thread chris h
Does $_SERVER['HTTP_METHOD'] show a GET or POST? On Wed, Aug 18, 2010 at 4:58 PM, Adam Richardson wrote: > On Wed, Aug 18, 2010 at 4:55 PM, Adam Richardson >wrote: > > > On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan < > a...@ashleysheridan.co.uk > > > wrote: > > > >> On Wed, 2010-08-18 at 13:

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Ashley Sheridan
On Wed, 2010-08-18 at 16:55 -0400, Adam Richardson wrote: > On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan > wrote: > > > On Wed, 2010-08-18 at 13:45 -0700, Brian Dunning wrote: > > > > > I'm trying to write a VERY simple script that does nothing but store all > > the submitted GET and POST var

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Adam Richardson
On Wed, Aug 18, 2010 at 4:55 PM, Adam Richardson wrote: > On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan > wrote: > >> On Wed, 2010-08-18 at 13:45 -0700, Brian Dunning wrote: >> >> > I'm trying to write a VERY simple script that does nothing but store all >> the submitted GET and POST vars in a

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Adam Richardson
On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan wrote: > On Wed, 2010-08-18 at 13:45 -0700, Brian Dunning wrote: > > > I'm trying to write a VERY simple script that does nothing but store all > the submitted GET and POST vars in a string and echo it out. > > > > $response = print_r($_REQUEST, tru

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Brian Dunning
Sorry, my typo, $_POST is one of the options we tried, not $POST. It returns an empty array also. On Aug 18, 2010, at 1:50 PM, Joshua Kehn wrote: > On Aug 18, 2010, at 4:45 PM, Brian Dunning wrote: > >> I'm trying to write a VERY simple script that does nothing but store all the >> submitted

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Marc Guay
> $response = print_r($_REQUEST, true); > echo $response; I'm sorry I don't have any input on your actual question but tohuhgt I'd mention that this can be shortened to: print_r($_REQUEST); ... if I'm not mistaken. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Ashley Sheridan
On Wed, 2010-08-18 at 13:45 -0700, Brian Dunning wrote: > I'm trying to write a VERY simple script that does nothing but store all the > submitted GET and POST vars in a string and echo it out. > > $response = print_r($_REQUEST, true); > echo $response; > > The problem is it only shows GET vars

[PHP] Can't read $_POST array

2010-08-18 Thread Brian Dunning
I'm trying to write a VERY simple script that does nothing but store all the submitted GET and POST vars in a string and echo it out. $response = print_r($_REQUEST, true); echo $response; The problem is it only shows GET vars. I've tried $POST instead of $_REQUEST and it always gives an empty a

Re: [PHP] Regular expressions, filter option1 OR option2

2010-08-18 Thread Camilo Sperberg
On Wed, Aug 18, 2010 at 15:01, Ashley Sheridan wrote: > On Wed, 2010-08-18 at 23:36 +0530, Shreyas Agasthya wrote: > > Camilo, > > What exactly are you trying to achieve? Meaning: > > if (true) >do this; > if (false) >do that; > > However, here's a link that I used long back to help me wi

Re: [PHP] method overloading in a class

2010-08-18 Thread Adam Richardson
On Wed, Aug 18, 2010 at 12:23 PM, Ashley Sheridan wrote: > Hi list, > > I know that some languages such as C++ can overload functions and > methods by declaring the method again with a different number of > arguments, and the compiler internally sorts things out, but I can't > seem to find a simil

Re: [PHP] method overloading in a class

2010-08-18 Thread Ashley Sheridan
On Wed, 2010-08-18 at 12:35 -0400, chris h wrote: > > > Would something like this work for you? > > > class foo > { > > >public function bar($arg1, $arg2, $arg3=null) > { > > > if (isset($arg3)){ > { > return $this->_bar3($arg1, $arg2, $arg3); > > > } else { >

Re: [PHP] Regular expressions, filter option1 OR option2

2010-08-18 Thread Ashley Sheridan
On Wed, 2010-08-18 at 23:36 +0530, Shreyas Agasthya wrote: > Camilo, > > What exactly are you trying to achieve? Meaning: > > if (true) >do this; > if (false) >do that; > > However, here's a link that I used long back to help me with some RegEx : > http://www.gskinner.com/RegExr/ > > R

[PHP] SSL Timeout Issue with fopen, fsockopen, file_get_contents, etc

2010-08-18 Thread Brent Macnaughton
I am really in need of some help here! Whenever I try to use fopen, fsockopen, file_get_contents, etc in php to open an https/ssl; resource, i get the following errors: Warning: file_get_contents(): SSL: connection timeout Warning: file_get_contents(): Failed to enable crypto Here is some relevan

Re: [PHP] Regular expressions, filter option1 OR option2

2010-08-18 Thread Shreyas Agasthya
Camilo, What exactly are you trying to achieve? Meaning: if (true) do this; if (false) do that; However, here's a link that I used long back to help me with some RegEx : http://www.gskinner.com/RegExr/ Regards, Shreyas On Wed, Aug 18, 2010 at 11:31 PM, Camilo Sperberg wrote: > Hello lis

[PHP] Regular expressions, filter option1 OR option2

2010-08-18 Thread Camilo Sperberg
Hello list :) Just a short question which I know it should be easy, but I'm no expert yet in regular expressions. I've got a nice little XML string, which is something like this but can be changed: http://tempuri.org/";>false The boolean value can be true or false, so what I want to do, is filt

Re: [PHP] method overloading in a class

2010-08-18 Thread chris h
Would something like this work for you? class foo { public function bar($arg1, $arg2, $arg3=null) { if (isset($arg3)){ { return $this->_bar3($arg1, $arg2, $arg3); } else { return $this->_bar2($arg1, $arg2); } } also you may want to look into the fu

[PHP] method overloading in a class

2010-08-18 Thread Ashley Sheridan
Hi list, I know that some languages such as C++ can overload functions and methods by declaring the method again with a different number of arguments, and the compiler internally sorts things out, but I can't seem to find a similar way to do this with PHP. Basically, what I've got at the moment i

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, Bob McConnell wrote: > From: e-letter > >> On 18/08/2010, chris h wrote: >>> On Wed, Aug 18, 2010 at 7:10 AM, e-letter wrote: >>> On 18/08/2010, chris h wrote: > What are the actual file permissions when you run ls -o? > root >>> >>> What's the entire out

Re: [PHP] mysqldump

2010-08-18 Thread Daniel P. Brown
On Tue, Aug 17, 2010 at 15:19, tedd wrote: > > Bingo -- that worked. > > It's interesting that a space is optional between -u and user, but required > to be absent between -p and password. Seems not symmetrical to me. The command I sent was because - as I said in the original thread - passing

RE: [PHP] tutorial failure

2010-08-18 Thread Bob McConnell
From: e-letter > On 18/08/2010, chris h wrote: >> On Wed, Aug 18, 2010 at 7:10 AM, e-letter wrote: >> >>> On 18/08/2010, chris h wrote: >>> > What are the actual file permissions when you run ls -o? >>> > >>> root >>> >> >> What's the entire output of ls -o? >> > [r...@localhost html]# ls -o *

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, Ashley Sheridan wrote: > On Wed, 2010-08-18 at 12:10 +0100, e-letter wrote: > >> On 18/08/2010, chris h wrote: >> > What are the actual file permissions when you run ls -o? >> > >> root >> > >> > Do you know if PHP is installed as an apache mod or cgi? Also you might >> > check wha

Re: [PHP] tutorial failure

2010-08-18 Thread Ashley Sheridan
On Wed, 2010-08-18 at 12:10 +0100, e-letter wrote: > On 18/08/2010, chris h wrote: > > What are the actual file permissions when you run ls -o? > > > root > > > > Do you know if PHP is installed as an apache mod or cgi? Also you might > > check what user apache is running as. > > > No. How to ver

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, chris h wrote: > On Wed, Aug 18, 2010 at 7:10 AM, e-letter wrote: > >> On 18/08/2010, chris h wrote: >> > What are the actual file permissions when you run ls -o? >> > >> root >> > > What's the entire output of ls -o? > [r...@localhost html]# ls -o * -rwxr-xr-x 1 root 182 2010-08

Re: [PHP] tutorial failure

2010-08-18 Thread chris h
On Wed, Aug 18, 2010 at 7:10 AM, e-letter wrote: > On 18/08/2010, chris h wrote: > > What are the actual file permissions when you run ls -o? > > > root > What's the entire output of ls -o? > > > > Do you know if PHP is installed as an apache mod or cgi? Also you might > > check what user apa

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, chris h wrote: > What are the actual file permissions when you run ls -o? > root > > Do you know if PHP is installed as an apache mod or cgi? Also you might > check what user apache is running as. > No. How to verify? > possibly... > $ vi /etc/apache2/envvars > No apache2 on my com

Re: [PHP] tutorial failure

2010-08-18 Thread chris h
What are the actual file permissions when you run ls -o? Do you know if PHP is installed as an apache mod or cgi? Also you might check what user apache is running as. possibly... $ vi /etc/apache2/envvars and look for something like... export APACHE_RUN_USER=www-data On Wed, Aug 18, 2010 at

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, Peter Lind wrote: > On 18 August 2010 12:47, e-letter wrote: >> On 18/08/2010, chris h wrote: >>> php is not processing the file. There's a few reasons for this, but the >>> first thing I would check is the permissions of the file. From the >>> directory try >>> >>> $ ls -oa >>>

Re: [PHP] tutorial failure

2010-08-18 Thread Peter Lind
On 18 August 2010 12:47, e-letter wrote: > On 18/08/2010, chris h wrote: >> php is not processing the file.  There's a few reasons for this, but the >> first thing I would check is the permissions of the file.  From the >> directory try >> >> $ ls -oa >> > The file permission was confirmed as roo

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, chris h wrote: > php is not processing the file. There's a few reasons for this, but the > first thing I would check is the permissions of the file. From the > directory try > > $ ls -oa > The file permission was confirmed as root, since it was copied (as root) from a normal user

Re: [PHP] tutorial failure

2010-08-18 Thread chris h
php is not processing the file. There's a few reasons for this, but the first thing I would check is the permissions of the file. From the directory try $ ls -oa This should tell you who owns the file and what it's permissions are. You mentioned that you copied it as root, you could change it'

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
I changed the code as follows: php test Hi, I am a PHP script"; ?> this is a test The result (http://localhost/test.php): Hi,

Re: [PHP] tutorial failure

2010-08-18 Thread Peter Lind
On 18 August 2010 10:44, e-letter wrote: > Readers, > > Copy below of message sent 15 August to php install digest list, but > to date not including in mail archive? > > The tutorial example: > > >       >              php test >                     >       >                                    ec

RE: [PHP] tutorial failure

2010-08-18 Thread Arno Kuhl
-Original Message- From: e-letter [mailto:inp...@gmail.com] Sent: 18 August 2010 10:44 AM To: php-general@lists.php.net Subject: [PHP] tutorial failure Readers, Copy below of message sent 15 August to php install digest list, but to date not including in mail archive? The tutorial examp

[PHP] tutorial failure

2010-08-18 Thread e-letter
Readers, Copy below of message sent 15 August to php install digest list, but to date not including in mail archive? The tutorial example: php test Hi, I am a PHP script'; ?> this is a test

[PHP] Re: Including files on NFS mount slow with APC enabled

2010-08-18 Thread Mark Hunting
Bug reported, see http://pecl.php.net/bugs/bug.php?id=18154 On 08/17/2010 01:13 PM, Colin Guthrie wrote: > I don't know the internals of APC but that smells like a bug to me. > > Can you post the bug number here if you report one? > > Cheers > > Col > > -- PHP General Mailing List (http://www

Re: [PHP] How verify whether browser arrived via IPv6, IPv4, domain or number

2010-08-18 Thread Per Jessen
Leith Bade wrote: > I want to take $_SERVER['SERVER_NAME'] and figure out whether the user > arrived by typing an IPv6-only, IPv4-only or dual IPv4/IPv6 DNS > address. > > It should also handle the case where the user enters a numeric address > in one of the formats the sockets inet_addr() functi