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:
If you're doing it like that, you may as well use:
Fixed that for you :)
Cheers,
Rob.
--
E-Mail D
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
> -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
> On 6/11/2010 11:43 PM, Daevid Vincent wrote:
> >> -Original Message-
> >> From: tedd [mailto:tedd.sperl...@gmail.
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
I am sure there will be some that think that my practice is an
overkill,
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] In
/var/www/my_notifications.php, line 40: WARNING
Invalid argument supplied for foreach()
I can't figure out:
[a] why the logs are in HTML format to begin wit
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:
Or do you have to change them to:
How does XML handle those tags?
Cheers,
tedd
If they have no content
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 h
On Fri, Jun 11, 2010 at 2:51 PM, Ashley M. Kirchner wrote:
> They had every single file starting with:
>
>
>
*PHP* files? I would have flagged that as the problem rather than disabling
short tags.
David
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 t
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:
Or do you have to change them to:
How does XML handle those tags?
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com htt
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
the echo argument with a (), like:
>
I am sure there will be some that think that my practice is an
overkill, or not "g
> -Original Message-
> From: David Harkness [mailto:davi...@highgearmedia.com]
> Sent: Friday, June 11, 2010 1:13 PM
> To: PHP General
> Subject: Re: [PHP] is
> On Fri, Jun 11, 2010 at 11:16 AM, Ashley Sheridan
> wrote:
>
> > For on I believe,
> > which can cause issues when outputt
> -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 the echo argument with a (), like:
>
>
>
> I am sure ther
On Fri, Jun 11, 2010 at 11:16 AM, Ashley Sheridan
wrote:
> For which can cause issues when outputting the XML declaration line unless
> it's broken into two parts, which is messier than '
Can you give an example of how this breaks? I don't see any problems with
' ?>
unless you are trying t
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/
s/http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://w
At 1:34 AM +0300 6/11/10, Ahmed Mohsen wrote:
I know that i should use the full open tag in php but i
want to know if its good to use this tag instead of echo $name ?>
Ahmed:
In many cases it boils down to an individual preference. I am sure
you will find programmers on both sides and in th
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?"
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 reo
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 elab
Agreed. I was just speculating; may be I over -speculated it ;)
Regards,
Shreyas
On Fri, Jun 11, 2010 at 8:18 PM, Ashley Sheridan
wrote:
> 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 val
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
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 sho
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 X
> -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. I
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
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 accessed by
users spread globally, you should try out a C
On Fri, 11 Jun 2010 09:24:09 +0200, Merlin Morgenstern
wrote:
> Hi there,
>
> I had a working version 5.2.9 running on my suse system. Then I upgraded
> to 5.2.12 with the same configure command. Unfortunatelly I lost pdf
> creation now.
>
> Here is what the configure output says:
>
>
> Noti
On 11 June 2010 12:45, Richard Quadling wrote:
> On 11 June 2010 11:41, Ashley Sheridan wrote:
>> On Fri, 2010-06-11 at 06:34 -0400, David Mehler wrote:
>>
>>> Hello,
>>> I've got a page that uses include_once to include a set of functions
>>> for use in that page. I later have another include_on
On 11 June 2010 11:41, Ashley Sheridan wrote:
> On Fri, 2010-06-11 at 06:34 -0400, David Mehler wrote:
>
>> Hello,
>> I've got a page that uses include_once to include a set of functions
>> for use in that page. I later have another include_once pulling in
>> another page, which generates a table.
Hi,
I'm trying to contact an openLDAP from Apache server (on windows) using PHP
using LDAPS
Here is my sample code :
$host="ldaps://srvLDAP";
$port="636";
$ds=ldap_connect($host,$port);
ldap_set_option($ds,LDAP_OPT_PROTOCOL_VERSION,3);
$r=ldap_bind($ds,"cn=admin,o=exemple,dc=fr","exemple" );
$sr
Hi
I'm writing from france cuz i'm having a big problem with apache and ldap.
let me explain :
I would like to make an Apache server communicate in php with en openLDAP
server (both servers are under win srv 2003), using LDAPS protocol.
In order to activate LDAPS on my openLDAP srv (srvLDAP), I
On Fri, 2010-06-11 at 06:34 -0400, David Mehler wrote:
> Hello,
> I've got a page that uses include_once to include a set of functions
> for use in that page. I later have another include_once pulling in
> another page, which generates a table. It relies on a function from
> the first file, yet an
Hello,
I've got a page that uses include_once to include a set of functions
for use in that page. I later have another include_once pulling in
another page, which generates a table. It relies on a function from
the first file, yet an error is being generated undefined function, I
thought that since
On Fri, 2010-06-11 at 15:13 +0530, Peter wrote:
> Hi Ashley,
>
> Thanks for your answer.
>
> When too many users log in at the same time, the server gets loaded
> with multiple sessions files that leads to complexity and crashes the
> server. In such cases how do we handle this ?
>
> Thanks in
On Fri, 2010-06-11 at 13:01 +0530, Peter wrote:
> 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
>
All the session data is stored on the server either in a database, file
or mem
Hi
A cookie with the session_id are send to the client.
Bo.
2010/6/11 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/
Hi there,
I had a working version 5.2.9 running on my suse system. Then I upgraded
to 5.2.12 with the same configure command. Unfortunatelly I lost pdf
creation now.
Here is what the configure output says:
Notice: Following unknown configure options were used:
--with-pdflib=/usr/local/lib
C
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
37 matches
Mail list logo