php-general Digest 11 Jun 2010 07:22:56 - Issue 6792
Topics (messages 306011 through 306034):
Re: Redirect to
306011 by: Daniel P. Brown
306012 by: Ashley Sheridan
306018 by: Ahmed Mohsen
bug in mkdir?
306013 by: Mike Wright
306014 by: Ashley
php-general Digest 11 Jun 2010 19:31:21 - Issue 6793
Topics (messages 306035 through 306054):
configure php 5.2.12 with-pdflib failes after upgrade from php 5.2.9
306035 by: Merlin Morgenstern
306045 by: Thijs Lensselink
Re: How does php server identify that the particular
Hi All,
My Question is How does php server identify that the particular session
belongs to particular user?
Please help me out
Regards
Peter.m
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 2010-06-11 at 19:56 +0530, Shreyas wrote:
I agree with Ash's comment.
You should probably dig in deeper and see if those IPs are indeed valid.
Given the way the sites are being attacked (DDoS, SQL Injection et al), you
could be seeing one. If you see a high load and your website is
-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
...as those tags only work when short_tags are turned on, which
itself causes problems with outputting XML from PHP.
Can you elaborate on this Ashley?
I use short tags and I output XML all the time. In
Daevid Vincent wrote:
-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
...as those tags only work when short_tags are turned on, which
itself causes problems with outputting XML from PHP.
Can you elaborate on this Ashley?
I use short tags and I output
Robert Cummings wrote:
Daevid Vincent wrote:
-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
...as those tags only work when short_tags are turned on, which
itself causes problems with outputting XML from PHP.
Can you elaborate on this Ashley?
I use
Robert Cummings wrote:
Robert Cummings wrote:
Daevid Vincent wrote:
-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
...as those tags only work when short_tags are turned on, which
itself causes problems with outputting XML from PHP.
Can you elaborate on
Agreed. I was just speculating; may be I over -speculated it ;)
Regards,
Shreyas
On Fri, Jun 11, 2010 at 8:18 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Fri, 2010-06-11 at 19:56 +0530, Shreyas wrote:
I agree with Ash's comment.
You should probably dig in deeper and see if
On Fri, 2010-06-11 at 10:40 -0700, Daevid Vincent wrote:
-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
...as those tags only work when short_tags are turned on, which
itself causes problems with outputting XML from PHP.
Can you elaborate on
At 3:46 PM -0400 6/10/10, Paul M Foster wrote:
On Thu, Jun 10, 2010 at 11:16:08AM -0400, tedd wrote:
I spend much of my time thinking Did I do that before?
grin I know the feeling. I will say this, though. I have yet to figure
out, from your URLs, how your site(s) is/are organized. Maybe a
At 1:34 AM +0300 6/11/10, Ahmed Mohsen wrote:
I know that i should use the full open tag in php ?php ? but i
want to know if its good to use this tag ?=$name? instead of ?php
echo $name ?
Ahmed:
In many cases it boils down to an individual preference. I am sure
you will find programmers on
At 5:53 PM -0700 6/10/10, Daevid Vincent wrote:
I use them ALL the time. MUCH cleaner IMHO than the alternatives.
And *IF* someday it is ever depricated, it's trival to:
s/?=/? echo/g
Don't let 'em scare ya!
s/?=/?php echo/g
Cheers,
tedd
--
---
http://sperling.com
On Fri, Jun 11, 2010 at 11:16 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
For ?= to work, the short_tags setting needs to be turned on I believe,
which can cause issues when outputting the XML declaration line unless
it's broken into two parts, which is messier than '?php echo' IMHO.
-Original Message-
From: tedd [mailto:tedd.sperl...@gmail.com]
I believe, just because it can be done doesn't mean that it
should be done.
My practice is *never* to use ?=
In fact, my practice is to not only use ?php echo, but to enclose
the echo argument with a (), like:
-Original Message-
From: David Harkness [mailto:davi...@highgearmedia.com]
Sent: Friday, June 11, 2010 1:13 PM
To: PHP General
Subject: Re: [PHP] is ?= good?
On Fri, Jun 11, 2010 at 11:16 AM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
For ?= to work, the short_tags
At 1:43 PM -0700 6/11/10, Daevid Vincent wrote:
-Original Message-
From: tedd [mailto:tedd.sperl...@gmail.com]
In fact, my practice is to not only use ?php echo, but to enclose
the echo argument with a (), like:
?php echo(The answer is $answer);?
I am sure there will be
At 2:19 PM -0700 6/11/10, Daevid Vincent wrote:
EVERY other tag in an XML document is just straight up html :
Just curious -- like html tags:
hr
br
Or do you have to change them to:
hr /
br /
How does XML handle those tags?
Cheers,
tedd
--
---
http://sperling.com
On 6/11/2010 11:40 AM, Daevid Vincent wrote:
I use short tags and I output XML all the time.
I think there's a difference to note here. You're outputting XML
from PHP, versus files having XML tags in the files ... I ran into a
problem with short tags not too long ago when a client
On Fri, Jun 11, 2010 at 2:51 PM, Ashley M. Kirchner ash...@pcraft.comwrote:
They had every single file starting with:
?xml version=1.0 encoding=UTF-8?
*PHP* files? I would have flagged that as the problem rather than disabling
short tags.
David
On 6/11/2010 4:07 PM, David Harkness wrote:
*PHP* files? I would have flagged that as the problem rather than
disabling
short tags.
Yeah, whoever created their site originally mixed XML/HTML/PHP all
in the same file (all the files were .html but contained xml and php
snippets) so I
On 6/12/2010 12:34 AM, tedd wrote:
At 2:19 PM -0700 6/11/10, Daevid Vincent wrote:
EVERY other tag in an XML document is just straight up html :
Just curious -- like html tags:
hr
br
Or do you have to change them to:
hr /
br /
How does XML handle those tags?
Cheers,
tedd
If they have
I'm trying to clean up some code and have been looking at error_log output
and they all look like this:
[11-Jun-2010 23:04:54] font color='red'bIn
/var/www/my_notifications.php, line 40: WARNING/b
Invalid argument supplied for foreach()
/font
I can't figure out:
[a] why the logs are in
On 6/11/2010 11:43 PM, Daevid Vincent wrote:
-Original Message-
From: tedd [mailto:tedd.sperl...@gmail.com]
I believe, just because it can be done doesn't mean that it
should be done.
My practice is *never* to use?=
In fact, my practice is to not only use?php echo, but to enclose
the
-Original Message-
From: Ahmed Mohsen [mailto:mre...@gmail.com]
Sent: Friday, June 11, 2010 4:25 PM
To: php-general@lists.php.net
Subject: Re: [PHP] is ?= good?
On 6/11/2010 11:43 PM, Daevid Vincent wrote:
-Original Message-
From: tedd
On 12/06/2010, at 8:43 AM, Daevid Vincent wrote:
-Original Message-
From: tedd [mailto:tedd.sperl...@gmail.com]
I believe, just because it can be done doesn't mean that it
should be done.
My practice is *never* to use ?=
In fact, my practice is to not only use ?php echo,
Simon J Welsh wrote:
On 12/06/2010, at 8:43 AM, Daevid Vincent wrote:
Also, for the love of God, please don't embed a variable into a literal
string and use preprocessing.
Do it like so:
?php echo 'The answer is '.$answer; ?
If you're doing it like that, you may as well use:
?php echo 'The
27 matches
Mail list logo