php-general Digest 18 Aug 2010 20:46:03 -0000 Issue 6900

2010-08-18 Thread php-general-digest-help
php-general Digest 18 Aug 2010 20:46:03 - Issue 6900 Topics (messages 307519 through 307544): Re: tutorial failure 307519 by: Arno Kuhl 307520 by: Peter Lind 307521 by: e-letter 307522 by: chris h 307523 by: e-letter 307524 by: Peter Lind

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

2010-08-18 Thread Leith Bade
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() function can handle. Such as

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() function

[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

[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: html head titlephp test /title /head body ?php echo 'pHi, I am a PHP

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

Re: [PHP] tutorial failure

2010-08-18 Thread Peter Lind
On 18 August 2010 10:44, e-letter inp...@gmail.com 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: html      head              titlephp test              /title      /head      body      

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
I changed the code as follows: html head titlephp test /title /head body ?php phpinfo ? ?php echo pHi, I am a PHP script/p; ? p this is a

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

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, chris h chris...@gmail.com 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

Re: [PHP] tutorial failure

2010-08-18 Thread Peter Lind
On 18 August 2010 12:47, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com 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

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, Peter Lind peter.e.l...@gmail.com wrote: On 18 August 2010 12:47, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com 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.

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

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, chris h chris...@gmail.com 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

Re: [PHP] tutorial failure

2010-08-18 Thread chris h
On Wed, Aug 18, 2010 at 7:10 AM, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com 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

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, chris h chris...@gmail.com wrote: On Wed, Aug 18, 2010 at 7:10 AM, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com 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

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 chris...@gmail.com 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

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2010-08-18 at 12:10 +0100, e-letter wrote: On 18/08/2010, chris h chris...@gmail.com 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?

RE: [PHP] tutorial failure

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

Re: [PHP] mysqldump

2010-08-18 Thread Daniel P. Brown
On Tue, Aug 17, 2010 at 15:19, tedd t...@sperling.com 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

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, Bob McConnell r...@cbord.com wrote: From: e-letter On 18/08/2010, chris h chris...@gmail.com wrote: On Wed, Aug 18, 2010 at 7:10 AM, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com wrote: What are the actual file permissions when you run ls -o?

[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

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

[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: ?xml version=1.0 encoding=utf-8? boolean xmlns=http://tempuri.org/;false/boolean The boolean

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

[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

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/ Regards,

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 { return

Re: [PHP] method overloading in a class

2010-08-18 Thread Adam Richardson
On Wed, Aug 18, 2010 at 12:23 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: 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

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

2010-08-18 Thread Camilo Sperberg
On Wed, Aug 18, 2010 at 15:01, Ashley Sheridan a...@ashleysheridan.co.ukwrote: 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

[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

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. I've

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 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 GET

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

2010-08-18 Thread Adam Richardson
On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: 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 =

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

2010-08-18 Thread Adam Richardson
On Wed, Aug 18, 2010 at 4:55 PM, Adam Richardson simples...@gmail.comwrote: On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan a...@ashleysheridan.co.uk 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

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 a...@ashleysheridan.co.ukwrote: 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

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 simples...@gmail.comwrote: On Wed, Aug 18, 2010 at 4:55 PM, Adam Richardson simples...@gmail.com wrote: On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote:

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): ?php $response = print_r($_POST, true); echo $response; ? 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

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. --- - ?php if ($_POST['action'] == 'Go')

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

2010-08-18 Thread Andrew Mason
On Thu, Aug 19, 2010 at 7:41 AM, Daevid Vincent dae...@daevid.com 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.

[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