php-general Digest 11 Jun 2010 07:22:56 -0000 Issue 6792

2010-06-11 Thread php-general-digest-help
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 -0000 Issue 6793

2010-06-11 Thread php-general-digest-help
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

[PHP] How does php server identify that the particular session belongs to particular user

2010-06-11 Thread Peter
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

Re: [PHP] How does php server identify that the particular session belongs to particular user

2010-06-11 Thread Ashley Sheridan
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

RE: [PHP] is ?= good?

2010-06-11 Thread Daevid Vincent
-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

Re: [PHP] is ?= good?

2010-06-11 Thread Robert Cummings
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

Re: [PHP] is ?= good?

2010-06-11 Thread Robert Cummings
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

Re: [PHP] is ?= good?

2010-06-11 Thread Robert Cummings
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

Re: [PHP] How does php server identify that the particular session belongs to particular user

2010-06-11 Thread Shreyas
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

RE: [PHP] is ?= good?

2010-06-11 Thread Ashley Sheridan
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

Re: [PHP] Question - foreach.

2010-06-11 Thread tedd
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

Re: [PHP] is ?= good?

2010-06-11 Thread tedd
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

RE: [PHP] is ?= good?

2010-06-11 Thread tedd
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

Re: [PHP] is ?= good?

2010-06-11 Thread David Harkness
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.

RE: [PHP] is ?= good?

2010-06-11 Thread Daevid Vincent
-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:

RE: [PHP] is ?= good?

2010-06-11 Thread Daevid Vincent
-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

RE: [PHP] is ?= good?

2010-06-11 Thread tedd
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

RE: [PHP] is ?= good?

2010-06-11 Thread tedd
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

Re: [PHP] is ?= good?

2010-06-11 Thread Ashley M. Kirchner
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

Re: [PHP] is ?= good?

2010-06-11 Thread David Harkness
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

Re: [PHP] is ?= good?

2010-06-11 Thread Ashley M. Kirchner
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

Re: [PHP] is ?= good?

2010-06-11 Thread Ahmed Mohsen
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

[PHP] Why is there HTML in the error_log output? Please make it stop.

2010-06-11 Thread Daevid Vincent
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

Re: [PHP] is ?= good?

2010-06-11 Thread Ahmed Mohsen
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

RE: [PHP] is ?= good?

2010-06-11 Thread Daevid Vincent
-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

Re: [PHP] is ?= good?

2010-06-11 Thread Simon J Welsh
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,

Re: [PHP] is ?= good?

2010-06-11 Thread Robert Cummings
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