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
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
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
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
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
-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
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
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
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
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
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
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.
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
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
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
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
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
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?
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?
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
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?
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
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
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
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
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
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,
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
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
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
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
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
$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:
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
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 =
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
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
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:
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
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')
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.
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
42 matches
Mail list logo