Hello all:
I had a few questions.
First, I'm using php-fastcgi with nginx for my primary web server. I was
wondering what sorts of optimizations exist to make this process a lot
faster.
Second, I'm setting up a custom application, and it contains an
authentication module for
On Sat, Mar 10, 2012 at 7:43 PM, Tedd Sperling tedd.sperl...@gmail.com wrote:
On Mar 10, 2012, at 3:53 PM, tamouse mailing lists wrote:
On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
That's correct, but to access those variables outside of their scope (such
as
On Mar 12, 2012, at 7:12 PM, Tim Streater wrote:
?php
function yes ($a)
{
global $x;
if ($a) $x = yes\n;
}
first (true);
echo $x;
?
but I haven't looked into $GLOBALS enough to know whether using them instead
would have saved my bacon.
I'm not sure what
On Mar 12, 2012, at 12:04 PM, Daniel Brown wrote:
On Sun, Mar 11, 2012 at 14:16, Tedd Sperling tedd.sperl...@gmail.com wrote:
This document clearly states that $GLOBALS is a SuperGlobal -- what am I not
understanding here?
You are understanding it correctly, the only thing that's missing
On Tue, Mar 13, 2012 at 4:59 PM, Tedd Sperling tedd.sperl...@gmail.com wrote:
On Mar 12, 2012, at 7:12 PM, Tim Streater wrote:
?php
function yes ($a)
{
global $x;
if ($a) $x = yes\n;
}
first (true);
echo $x;
?
but I haven't looked into $GLOBALS enough to know
On 13 Mar 2012, at 15:59, Tedd Sperling wrote:
In any event, I seldom use globals anyway. This was more an academic
discussion.
If you're being academic about it please remember that the way PHP defines
globals is different to most other languages.
PHP: A variable defined at the top-level
On Mar 13, 2012, at 12:20 PM, Stuart Dallas wrote:
On 13 Mar 2012, at 15:59, Tedd Sperling wrote:
In any event, I seldom use globals anyway. This was more an academic
discussion.
-snip-
It ultimately also means that only the superglobals are true globals.
That was my initial statement in
On 13 Mar 2012 at 15:59, Tedd Sperling tedd.sperl...@gmail.com wrote:
I'm not sure what would have saved bacon in the above case. I don't see how
your example would work. I think it contained a typo.
In what I think you were trying to demonstrate, I would just pass $x by
reference ($x) --
Stuart Dallas wrote:
[snip] so $GLOBALS['GLOBALS']['GLOBALS']['GLOBALS']['_SERVER'] is a perfectly
valid, if daft, way of accessing $_SERVER.
-Stuart
Now this is becoming educational! ;-)
Donovan
--
D Brooke
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Sun, Mar 11, 2012 at 14:16, Tedd Sperling tedd.sperl...@gmail.com wrote:
As to placing an additional requirement (i.e., being predefined) on the
definition as to what constitutes a SuperGlobal is outside my understanding.
As such, I must defer to the PHP Manual, namely:
On Mar 11, 2012, at 3:04 PM, Tim Streater wrote:
In the following, $x is a global but not a super-global (AFAIK).
?php
function echox ()
{
global $x;
echo $x;
}
$x = Hello world\n;
echox ();
?
--
Cheers -- Tim
Tim:
I read somewhere that using:
The purpose of the global statement within a function is to let PHP know
that the usage of a var name INSIDE that function is not meant to create a
NEW variable, but instead, to reference the other (global) variable being
used (and perhaps already defined) in your main script.
Basically it
On 12 Mar 2012 at 20:07, Tedd Sperling tedd.sperl...@gmail.com wrote:
Tim:
I read somewhere that using:
global $x;
is not recommended. Whereas, it is recommended to use:
$x = $GLOBALS['x'];
echo $x;
Tedd,
That may well be, although as I write I can't recollect having seen that
On 11 Mar 2012, at 01:43, Tedd Sperling wrote:
On Mar 10, 2012, at 3:53 PM, tamouse mailing lists wrote:
On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
That's correct, but to access those variables outside of their scope (such
as a function) you do via a
On Sat, Mar 10, 2012 at 10:37, Tedd Sperling tedd.sperl...@gmail.com wrote:
As such, there are no globals in PHP other than SuperGlobals. As I said, if
I'm wrong, please show me otherwise.
A superglobal is predefined at run-time by the parser,
environment, SAPI, etc. (_SERVER, _POST, _GET,
On Mar 11, 2012, at 10:25 AM, Daniel Brown wrote:
On Sat, Mar 10, 2012 at 10:37, Tedd Sperling tedd.sperl...@gmail.com wrote:
As such, there are no globals in PHP other than SuperGlobals. As I said,
if I'm wrong, please show me otherwise.
A superglobal is predefined at run-time by the
On 11 Mar 2012 at 18:16, Tedd Sperling tedd.sperl...@gmail.com wrote:
On Mar 11, 2012, at 10:25 AM, Daniel Brown wrote:
On Sat, Mar 10, 2012 at 10:37, Tedd Sperling tedd.sperl...@gmail.com wrote:
As such, there are no globals in PHP other than SuperGlobals. As I said,
if I'm wrong, please
On Mar 9, 2012, at 10:20 PM, Jim Giner wrote:
tamouse mailing lists tamouse.li...@gmail.com wrote in message
news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com...
On Mon, Feb 13, 2012 at 2:39 PM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
On Feb 13, 2012, at 4:10 AM,
Tedd Sperling tedd.sperl...@gmail.com wrote in message
news:315faa8f-3103-4661-b167-d30248952...@gmail.com...
On Mar 9, 2012, at 10:20 PM, Jim Giner wrote:
tamouse mailing lists tamouse.li...@gmail.com wrote in message
news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com...
On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling tedd.sperl...@gmail.com wrote:
On Mar 9, 2012, at 10:20 PM, Jim Giner wrote:
tamouse mailing lists tamouse.li...@gmail.com wrote in message
news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com...
On Mon, Feb 13, 2012 at 2:39 PM,
On Mar 10, 2012, at 3:53 PM, tamouse mailing lists wrote:
On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
That's correct, but to access those variables outside of their scope (such
as a function) you do via a SuperGlobal, namely $GLOBAL['whatever'].
As such,
On Mon, Feb 13, 2012 at 2:39 PM, Tedd Sperling tedd.sperl...@gmail.com wrote:
On Feb 13, 2012, at 4:10 AM, Stuart Dallas wrote:
On 13 Feb 2012, at 06:28, Rui Hu wrote:
How PHP sets variables in $_SERVER, say, $DOCUMENT_ROOT? What should I know
if I want to modify $_SERVER myself?
Once your
tamouse mailing lists tamouse.li...@gmail.com wrote in message
news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com...
On Mon, Feb 13, 2012 at 2:39 PM, Tedd Sperling tedd.sperl...@gmail.com
wrote:
On Feb 13, 2012, at 4:10 AM, Stuart Dallas wrote:
On 13 Feb 2012, at 06:28,
On 13 Feb 2012, at 06:28, Rui Hu wrote:
How PHP sets variables in $_SERVER, say, $DOCUMENT_ROOT? What should I know
if I want to modify $_SERVER myself?
Once your script starts the superglobals are no different to any other
variables, except that they're in scope at all times.
The only
On Feb 13, 2012, at 4:10 AM, Stuart Dallas wrote:
On 13 Feb 2012, at 06:28, Rui Hu wrote:
How PHP sets variables in $_SERVER, say, $DOCUMENT_ROOT? What should I know
if I want to modify $_SERVER myself?
Once your script starts the superglobals are no different to any other
variables,
On Mon, Feb 13, 2012 at 5:28 PM, Rui Hu tchrb...@gmail.com wrote:
hi,
How PHP sets variables in $_SERVER, say, $DOCUMENT_ROOT? What should I know
if I want to modify $_SERVER myself?
Thanks!
--
Best regards,
Rui Hu
Hello,
I was reading http://www.php.net/manual/en/features.gc.refcounting-basics.php,
and i saw this:
The xdebug_debug_zval() function does not show this, but you could see it by
also displaying the memory pointer.
My question is, how can you get the memory pointer of a php variable?
hi,
I encountered a problem while configured virtual host. My experiment
environment is Apache2+fastcgi+php-cgi.
I want to implement mass virtual hosting using rewrite rules based on
apache rewrite module. That is, for a request url like:
http://1000.xyz.com/test.php, apache will translate it to
Hello All,
I am trying to make some sense of this PHP5 security vulnerability notice
from 18 October 2011:
http://comments.gmane.org/gmane.linux.ubuntu.security.announce/1478
It states that for Ubuntu 8.04 users, a PHP upgrade to 5.2.4 is required to
take care of the security issues. It also
On 10/19/2011 7:00 AM, Jon Watson wrote:
Hello All,
I am trying to make some sense of this PHP5 security vulnerability notice
from 18 October 2011:
http://comments.gmane.org/gmane.linux.ubuntu.security.announce/1478
It states that for Ubuntu 8.04 users, a PHP upgrade to 5.2.4 is
On Wed, Oct 19, 2011 at 11:54 AM, Jim Lucas li...@cmsws.com wrote:
On 10/19/2011 7:00 AM, Jon Watson wrote:
Hello All,
I am trying to make some sense of this PHP5 security vulnerability notice
from 18 October 2011:
http://comments.gmane.org/gmane.linux.ubuntu.security.announce/1478
On 10/19/2011 8:05 AM, Jon Watson wrote:
On Wed, Oct 19, 2011 at 11:54 AM, Jim Lucas li...@cmsws.com wrote:
On 10/19/2011 7:00 AM, Jon Watson wrote:
Hello All,
I am trying to make some sense of this PHP5 security vulnerability notice
from 18 October 2011:
: [PHP] questions about if statements regarding a checkbox
To: php-general@lists.php.net
I tried that, but I'm getting the syntax error that says unexpected
T_IF. Probably because I'm trying to process this information directly
in an email rather letting a mysql database handle the data, which I
: Ben Brentlinger b...@benbrent.com
To: php-general@lists.php.net php-general@lists.php.net
Date: Sunday, October 31, 2010, 4:05:06 AM
Subject: [PHP] questions about if statements regarding a checkbox
hello,
I'd like to know the proper code to use in a php script that processes a
form with a checkbox
Here's the code I'm using with the exception of the php tags and the
redirect script that redirects to another page once the form is
submitted. This is just a test script I'm working on in order to teach
myself php. The php portion will be posted first, than the html form
related to the php.
Subject: Re: [PHP] questions about if statements regarding a checkbox
Here's the code I'm using with the exception of the php tags and the
redirect script that redirects to another page once the form is
submitted. This is just a test script I'm working on in order to teach
myself php. The php
...@buskirkgraphics.com]
Sent: Sunday, October 31, 2010 10:37 AM
To: 'Ben Brentlinger'; php-general@lists.php.net
Subject: RE: [PHP] questions about if statements regarding a checkbox
I tested your code and besides adding a form to the beginning it works.
If you want to see the results
At 10:05 PM -0400 10/30/10, Ben Brentlinger wrote:
hello,
I'd like to know the proper code to use in a php script that
processes a form with a checkbox in order to send one email if the
checkbox has been checked and another email if the checkbox hasn't.
I tried if($check == true) and I tried
thanks for your help. I just retested my code and even though it didn't
work, I found the reason it wasn't working was because I had an unneeded
space between the if and the rest of the if statement.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
someone had responded with the isset
if(isset($_POST['reallife']))
{
print_r($_POST);
}
Richard L. Buskirk
-Original Message-
From: Ben Brentlinger [mailto:b...@benbrent.com]
Sent: Sunday, October 31, 2010 8:26 AM
To: php-general@lists.php.net
Subject: Re: [PHP] questions about
hello,
I'd like to know the proper code to use in a php script that processes a
form with a checkbox in order to send one email if the checkbox has been
checked and another email if the checkbox hasn't. I tried if($check ==
true) and I tried putting the word true in double quotes, and both
On Sat, Oct 30, 2010 at 10:05 PM, Ben Brentlinger b...@benbrent.com wrote:
hello,
I'd like to know the proper code to use in a php script that processes a
form with a checkbox in order to send one email if the checkbox has been
checked and another email if the checkbox hasn't. I tried
@lists.php.net
Subject: [PHP] questions about if statements regarding a checkbox
hello,
I'd like to know the proper code to use in a php script that processes a
form with a checkbox in order to send one email if the checkbox has been
checked and another email if the checkbox hasn't. I tried if($check
[mailto:b...@benbrent.com]
Sent: Saturday, October 30, 2010 10:05 PM
To: php-general@lists.php.net
Subject: [PHP] questions about if statements regarding a checkbox
hello,
I'd like to know the proper code to use in a php script that processes a
form with a checkbox in order to send one email
[mailto:b...@benbrent.com]
Sent: Saturday, October 30, 2010 10:05 PM
To: php-general@lists.php.net
Subject: [PHP] questions about if statements regarding a checkbox
hello,
I'd like to know the proper code to use in a php script that processes a
form with a checkbox in order to send one email
Tamara -
Thanks.
No error_log.
This works ...
htmlbody
?php phpinfo(); ?
/body/html
Ethan
++
At 02:23 AM 10/19/2010, Tamara Temple wrote:
On Oct 18, 2010, at 11:01 PM, Ethan Rosenberg wrote:
I've added the code you suggest, and I still get a blank screen.
Should I be explicitly
-Original Message-
From: Ethan Rosenberg [mailto:eth...@earthlink.net]
Sent: Tuesday, October 19, 2010 12:05 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Questions from a Newbie
Tamara -
Thanks.
No error_log.
The error log only exists if he configures it properly
/2010, Tommy Pham wrote:
-Original Message-
From: Ethan Rosenberg [mailto:eth...@earthlink.net]
Sent: Tuesday, October 19, 2010 12:05 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Questions from a Newbie
Tamara -
Thanks.
No error_log.
The error log only exists if he
, October 19, 2010 12:05 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Questions from a Newbie
Tamara -
Thanks.
No error_log.
The error log only exists if he configures it properly and the script has
error. IE: log_errors error_log. Like I said, Ethan should start from
the beginning
-Original Message-
From: Ethan Rosenberg [mailto:eth...@earthlink.net]
Sent: Tuesday, October 19, 2010 9:19 AM
To: Tommy Pham; php-general@lists.php.net
Subject: RE: [PHP] Questions from a Newbie
Dear List -
The error log only exists if he configures it properly and the script
thread has been trimmed to NOTHING
i am pretty sure i read it on here already... but your PHP code looks
wrong.
ORIGNAL CODE:
/*
* Create Database test22
*/
htmlbody
?php
$cxn = mysqli_connect($host,$user,$password);
echoCreate database test22;
echoCreate table Names2
(
-Original Message-
From: Steve Staples [mailto:sstap...@mnsi.net]
Sent: Tuesday, October 19, 2010 11:07 AM
To: Ethan Rosenberg
Cc: php-general@lists.php.net
Subject: RE: [PHP] Questions from a Newbie - Please Help
thread has been trimmed to NOTHING
i am pretty sure i read
On Tue, 2010-10-19 at 11:18 -0700, Tommy Pham wrote:
-Original Message-
From: Steve Staples [mailto:sstap...@mnsi.net]
Sent: Tuesday, October 19, 2010 11:07 AM
To: Ethan Rosenberg
Cc: php-general@lists.php.net
Subject: RE: [PHP] Questions from a Newbie - Please Help
thread
-Original Message-
From: Steve Staples [mailto:sstap...@mnsi.net]
Sent: Tuesday, October 19, 2010 11:51 AM
To: php-general
Subject: RE: [PHP] Questions from a Newbie - Please Help
On Tue, 2010-10-19 at 11:18 -0700, Tommy Pham wrote:
-Original Message-
From: Steve
-Original Message-
From: Paul M Foster [mailto:pa...@quillandmouse.com]
Sent: Sunday, October 17, 2010 9:46 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Questions from a Newbie
On Sun, Oct 17, 2010 at 01:00:44AM -0400, Ethan Rosenberg wrote:
Dear List -
Here are some
Ethan,you have the end of line semi colons enclosed in double
quotes..move them to the true end of line.
On 17/10/10 04:45, Christian Heinrich wrote:
Am Sonntag, den 17.10.2010, 01:00 -0400 schrieb Ethan Rosenberg:
Dear List -
Here are some questions, which I am sure are trivial, but I am a
Am Sonntag, den 17.10.2010, 01:00 -0400 schrieb Ethan Rosenberg:
Dear List -
Here are some questions, which I am sure are trivial, but I am a
newbie, and cannot find the answers online
I cannot get the following to work. In my Firefox [Iceweasel]
browser, I enter the following URL:
-Original Message-
From: Alexis [mailto:phplis...@antonakis.co.uk]
Sent: Sunday, October 17, 2010 4:10 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Questions from a Newbie
Ethan,you have the end of line semi colons enclosed in double
quotes..move them to the true end
At 01:41 AM 10/17/2010, Tommy Pham wrote:
-Original Message-
From: Ethan Rosenberg [mailto:eth...@earthlink.net]
Sent: Saturday, October 16, 2010 10:01 PM
To: php-general@lists.php.net
Subject: [PHP] Questions from a Newbie
Dear List -
Here are some questions, which I am sure
are. You can do this from the php.ini, look for
display_errors.
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: Ethan Rosenberg eth...@earthlink.net
Date: Sun, Oct 17, 2010 19:22
Subject: [PHP] Questions from a Newbie
To: Tommy Pham tommy...@gmail.com, php-general
On Oct 17, 2010, at 1:22 PM, Ethan Rosenberg wrote:
At 01:41 AM 10/17/2010, Tommy Pham wrote:
I cannot get the following to work. In my Firefox [Iceweasel]
browser, I
enter the following URL: [w/ the http]
Whenever you get a blank screen running a php application, the place
to look is
gah, i botched that up.
For the first part, you want the following:
$cxn = new mysql($host, $user, $password);
$res = $cxn-query(create database test22:);
if (!$res) {
die(Failed to create database test22: . $cxn-error());
}
Then, reopen the
On Sun, Oct 17, 2010 at 11:22 AM, Ethan Rosenberg eth...@earthlink.net wrote:
snip
Tommy -
Thanks.
As I stated, I am a newbie.
1] I am trying to shorten the learning curve by asking some questions, which
I understand are probably trivial. A whole MySQLi list of functions at this
On Sun, Oct 17, 2010 at 01:00:44AM -0400, Ethan Rosenberg wrote:
Dear List -
Here are some questions, which I am sure are trivial, but I am a
newbie, and cannot find the answers online
I cannot get the following to work. In my Firefox [Iceweasel]
browser, I enter the following URL:
Dear List -
Here are some questions, which I am sure are trivial, but I am a
newbie, and cannot find the answers online
I cannot get the following to work. In my Firefox [Iceweasel]
browser, I enter the following URL: [w/ the http]
localhost/CreateNew.php All I get is a blank browser
-Original Message-
From: Ethan Rosenberg [mailto:eth...@earthlink.net]
Sent: Saturday, October 16, 2010 10:01 PM
To: php-general@lists.php.net
Subject: [PHP] Questions from a Newbie
Dear List -
Here are some questions, which I am sure are trivial, but I am a newbie,
and
cannot
Peter and Paul:
Sorry, I went on vacation for a few days (it was a surprise vacation
with a 2 day notice).
I think you both understand what I was looking for and found what I
wanted was not possible. It's just one of those things in life you
have to live with.
Thanks very much for your
On Sun, Aug 29, 2010 at 06:04:23PM +0200, Per Jessen wrote:
Jason Pruim wrote:
My understanding of how shared hosting works would make this near
impossible... Basically Apache grabs a header that is sent at the
initial connection which includes the destination hostname and from
there
On 30 August 2010 21:32, Paul M Foster pa...@quillandmouse.com wrote:
On Sun, Aug 29, 2010 at 06:04:23PM +0200, Per Jessen wrote:
Jason Pruim wrote:
My understanding of how shared hosting works would make this near
impossible... Basically Apache grabs a header that is sent at the
initial
On Mon, Aug 30, 2010 at 09:53:46PM +0200, Peter Lind wrote:
On 30 August 2010 21:32, Paul M Foster pa...@quillandmouse.com wrote:
On Sun, Aug 29, 2010 at 06:04:23PM +0200, Per Jessen wrote:
Jason Pruim wrote:
My understanding of how shared hosting works would make this near
On 30 August 2010 22:34, Paul M Foster pa...@quillandmouse.com wrote:
On Mon, Aug 30, 2010 at 09:53:46PM +0200, Peter Lind wrote:
On 30 August 2010 21:32, Paul M Foster pa...@quillandmouse.com wrote:
On Sun, Aug 29, 2010 at 06:04:23PM +0200, Per Jessen wrote:
Jason Pruim wrote:
My
On Mon, Aug 30, 2010 at 10:34:42PM +0200, Peter Lind wrote:
On 30 August 2010 22:34, Paul M Foster pa...@quillandmouse.com wrote:
On Mon, Aug 30, 2010 at 09:53:46PM +0200, Peter Lind wrote:
snip
$_SERVER['REMOTE_NAME']
So the question is, how would he get that last variable. It
On Mon, Aug 30, 2010 at 05:13:59PM -0400, Paul M Foster wrote:
On Mon, Aug 30, 2010 at 10:34:42PM +0200, Peter Lind wrote:
On 30 August 2010 22:34, Paul M Foster pa...@quillandmouse.com wrote:
On Mon, Aug 30, 2010 at 09:53:46PM +0200, Peter Lind wrote:
snip
tedd wrote:
At 12:15 AM +0200 8/29/10, Peter Lind wrote:
On 28 August 2010 23:45, tedd tedd.sperl...@gmail.com wrote:
So, I'm trying to figure out a compliment to
$_SERVER['SERVER_NAME'] such as
something like $_SERVER['REMOTE_NAME'].
Is there such a beast?
You're not making any
On 29 August 2010 08:08, Jim Lucas li...@cmsws.com wrote:
*snip*
Their is not existing variable (if you would) that your server, when
connecting to a remote server, would be sending. So, to have the remote end
be able to identify the initiating host identity, the initiating side would
have
At 10:56 AM +0200 8/29/10, Peter Lind wrote:
On 29 August 2010 08:08, Jim Lucas li...@cmsws.com wrote:
*snip*
Their is not existing variable (if you would) that your server, when
connecting to a remote server, would be sending. So, to have the remote end
be able to identify the initiating
On Aug 29, 2010, at 10:55 AM, tedd wrote:
At 10:56 AM +0200 8/29/10, Peter Lind wrote:
On 29 August 2010 08:08, Jim Lucas li...@cmsws.com wrote:
*snip*
Their is not existing variable (if you would) that your server, when
connecting to a remote server, would be sending. So, to have the
At 11:54 AM -0400 8/29/10, Jason Pruim wrote:
On Aug 29, 2010, at 10:55 AM, tedd wrote:
To all:
My post about SERVER globals was simply an observation that the
SERVER global report of host and remote was not symmetric -- for
example you could obtain both the IP and Domain Name of the host,
Jason Pruim wrote:
My understanding of how shared hosting works would make this near
impossible... Basically Apache grabs a header that is sent at the
initial connection which includes the destination hostname and from
there it translates it to the proper directory on the shared host.
All
On 29 August 2010 18:04, Per Jessen p...@computer.org wrote:
Jason Pruim wrote:
My understanding of how shared hosting works would make this near
impossible... Basically Apache grabs a header that is sent at the
initial connection which includes the destination hostname and from
there it
Hi gang:
The server global:
$_SERVER['SERVER_ADDR']
Provides the IP of the server where the current script is executing.
And, the server global:
$_SERVER['REMOTE_ADDR']
Provides the IP of the server executing the script.
As such, you can enter the IP of either into a browser and see
tedd wrote:
Hi gang:
The server global:
$_SERVER['SERVER_ADDR']
Provides the IP of the server where the current script is executing.
And, the server global:
$_SERVER['REMOTE_ADDR']
Provides the IP of the server executing the script.
Yes, aka the client address.
As
At 9:41 PM +0200 8/28/10, Per Jessen wrote:
tedd wrote:
So, how can I identify the exact location of the 'server_addr' and of
the 'remote_addr' on shared hosting? Is that possible?
$_SERVER['SERVER_NAME'] will tell you the name of the virtual host - I
don't know if that is what you're
On 28 August 2010 23:45, tedd tedd.sperl...@gmail.com wrote:
At 9:41 PM +0200 8/28/10, Per Jessen wrote:
tedd wrote:
So, how can I identify the exact location of the 'server_addr' and of
the 'remote_addr' on shared hosting? Is that possible?
$_SERVER['SERVER_NAME'] will tell you the
At 12:15 AM +0200 8/29/10, Peter Lind wrote:
On 28 August 2010 23:45, tedd tedd.sperl...@gmail.com wrote:
So, I'm trying to figure out a compliment to
$_SERVER['SERVER_NAME'] such as
something like $_SERVER['REMOTE_NAME'].
Is there such a beast?
You're not making any sense. For the
Sorry, forgot to include the mailing list email when I replied to this
originally...
On Aug 28, 2010, at 8:28 PM, tedd wrote:
Sorry for not making sense. But sometimes you have to confirm the
players (both server and remote) in communications.
Try this -- place this script on your site:
Ellen Heitman wrote:
Hello! I would really appreciate some answers to a few basic questions.
I have done some research online, but it would greatly help me to get
direct answers.
1. If my site needs to be available to many browsers, including those
that may not be entirely up-to-date, is PHP
On Wed, May 20, 2009 at 10:45:07AM -0500, Ellen Heitman wrote:
Hello! I would really appreciate some answers to a few basic questions. I
have done some research online, but it would greatly help me to get direct
answers.
1. If my site needs to be available to many browsers, including those
Ellen Heitman wrote:
Hello! I would really appreciate some answers to a few basic questions. I
have done some research online, but it would greatly help me to get direct
answers.
1. If my site needs to be available to many browsers, including those that
may not be entirely up-to-date, is PHP a
Hello! I would really appreciate some answers to a few basic questions. I
have done some research online, but it would greatly help me to get direct
answers.
1. If my site needs to be available to many browsers, including those that
may not be entirely up-to-date, is PHP a safe option? I mean, I
Irving
Create Rich Ajax/PHP Web Apps Today!
Raxan PDI - http://raxanpdi.com/
--- On Wed, 5/20/09, Ellen Heitman ellen.heit...@gmail.com wrote:
From: Ellen Heitman ellen.heit...@gmail.com
Subject: [PHP] Really basic PHP questions -- newbie here!
To: php-general@lists.php.net
Date: Wednesday, May 20
If not following some classes. I'd suggest Ellen to watch the videos for a
quick overview from NETTUTS and KillerPHP.
www.killerphp.com also google for some vidoes.
And you need to understand the facts of ServerSide, ClientSide, HTML,
WebServer, Permission of Files etc.
: Thodoris [EMAIL PROTECTED]
Sent: Saturday, September 27, 2008 8:24 AM
To: [EMAIL PROTECTED]; php-general@lists.php.net
Subject: Re: [PHP] Questions regarding limits of processes launched by
system, exec,passthru ...
Hello all,
Is there a way to limit the memory consumption
Hello all,
Is there a way to limit the memory consumption and / or the CPU
consumption of processes launched by the php functions system,
exec, passthru, proc_open and shell_exec?
We use mod_php with an apache (mpm-prefork) on Linux.
The following settings don't have any effect at all:
PHP:
O/H Thodoris έγραψε:
Hello all,
Is there a way to limit the memory consumption and / or the CPU
consumption of processes launched by the php functions system,
exec, passthru, proc_open and shell_exec?
We use mod_php with an apache (mpm-prefork) on Linux.
The following settings don't have
PROTECTED]; php-general@lists.php.net
Subject: Re: [PHP] Questions regarding limits of processes launched by system,
exec,passthru ...
Hello all,
Is there a way to limit the memory consumption and / or the CPU
consumption of processes launched by the php functions system,
exec
Hello all,
Is there a way to limit the memory consumption and / or the CPU
consumption of processes launched by the php functions system,
exec, passthru, proc_open and shell_exec?
We use mod_php with an apache (mpm-prefork) on Linux.
The following settings don't have any effect at all:
PHP:
-Original Message-
Is there a way to limit the memory consumption and / or the CPU
consumption of processes launched by the php functions system,
exec, passthru, proc_open and shell_exec?
I suspect...
PHP pretty much releases control to the shell or whatever, and just waits
around
On Thu, Sep 25, 2008 at 4:28 AM, Valentin Schmid - ICSurselva AG
[EMAIL PROTECTED] wrote:
Hello all,
Is there a way to limit the memory consumption and / or the CPU
consumption of processes launched by the php functions system,
exec, passthru, proc_open and shell_exec?
Since you're
You guys are just awesome! Thanks already for the help I really
appreciate it!
My site is up on adslgeek.com/troubleshooter but I have a DNS problem
that I have to fix over the weekend. :-(
The scenario is an input dashboard, with various settings that measure
the quality of an ADSL line.
I
1 - 100 of 177 matches
Mail list logo