Andrea Giammarchi wrote:
if used properly, could avoid recursion, and speed up operations ... there is
nothing wrong with goto, everything we write on lowest level is a jump in the
memory (as goto is a jump in the code flow)
++goto ... and not goto++
I forgot, I have always used goto in B
HEY! Don't try to hijack my astonishingly long-running thread! Start your
own Jay. ;-}
> -Original Message-
> From: Jay Blanchard [mailto:jblanch...@pocket.com]
> Sent: Tuesday, October 06, 2009 11:34 AM
> To: Tommy Pham; php-general@lists.php.net
> Subject: RE: [PHP] Whacky increment/as
> -Original Message-
> From: Paul M Foster [mailto:pa...@quillandmouse.com]
> Sent: Tuesday, October 06, 2009 6:28 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Whacky increment/assignment logic with
> $foo++ vs ++$foo
>
> On Tue, Oct 06, 2009 at 08:51:17AM -0400, Bob McConn
At 10:20 AM +1100 10/7/09, clanc...@cybec.com.au wrote:
On Tue, 6 Oct 2009 14:08:14 -0400, tedd.sperl...@gmail.com (tedd) wrote:
At 10:48 AM -0300 10/6/09, Martin Scotta wrote:
No matter how silly it can looks like (a = a++) it is still completely valid
code and it SHOULD run without problems.
At 1:09 AM +0200 10/7/09, Andrea Giammarchi wrote:
> Eddie:
And thanks for supporting my point.
so you think as well that 3 characters, written like this i++, in a
careless way, or like this ++i, make the difference about time spent
to develop ... interesting
No, just the opposite. It d
On Tue, 6 Oct 2009 14:08:14 -0400, tedd.sperl...@gmail.com (tedd) wrote:
>At 10:48 AM -0300 10/6/09, Martin Scotta wrote:
>>No matter how silly it can looks like (a = a++) it is still completely valid
>>code and it SHOULD run without problems.
>
>Yeah, it's a valid as:
>
>$a = $a;
>
>and does
> if used properly, could avoid recursion, and speed up operations ... there is
> nothing wrong with goto, everything we write on lowest level is a jump in the
> memory (as goto is a jump in the code flow)
>
> ++goto ... and not goto++
I forgot, I have always used goto in Batch script, which
> Speaking of starting a conversation, what do you think about the "goto"
> construct introduced just recently?
if used properly, could avoid recursion, and speed up operations ... there is
nothing wrong with goto, everything we write on lowest level is a jump in the
memory (as goto is a jump
> Eddie:
>
> And thanks for supporting my point.
so you think as well that 3 characters, written like this i++, in a careless
way, or like this ++i, make the difference about time spent to develop ...
interesting
Regards
ah ah ah that's for sure, I've never said that is correct, I said that is
illogical ;-)
> Subject: RE: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo
> Date: Tue, 6 Oct 2009 12:46:36 -0500
> From: jblanch...@pocket.com
> To: an_...@hotmail.com; tedd.sperl...@gmail.com; php-ge
> Furthermore, the amount
> of time micro-optimization takes up (going through old code, I mean)
> could be better spent doing something that actually does increase your
> performance, like implementing a search engine or memcached. Going
> forward, if you're aware that ++i and i++ are the same
Sam Stelfox wrote on 2009-10-06 18:09:
If you are distributing your application over multiple servers, using a
database for session tracking allows a user to continue there session
regardless of which server their request bounces too. It prevents the
need for 'sticky' network connections which
Absolutely. ;) I was reporting to ashley teachings. :-)
Philip, thanks for the tip.
:-)
Thank you all,
Márcio
> -Original Message-
> From: Tom Worster [mailto:f...@thefsb.org]
> Sent: terça-feira, 6 de Outubro de 2009 21:10
> To: MEM; php-general@lists.php.net
> Subject: Re: [PHP] Re:
just as ashley said it.
On 10/6/09 3:26 PM, "MEM" wrote:
> Sorry all,
> It's ok. The sintax:
>
> class="mensagemErro">'.$erros['anexo'].'' :''); ?>
>
> Was right all the time.
>
> Anyway, I've learn something new: having a var with '' is not the same thing
> as not been unset. So we must pa
On Oct 6, 2009, at 2:26 PM, MEM wrote:
Sorry all,
It's ok. The sintax:
'.$erros['anexo'].'' :''); ?>
Was right all the time.
Anyway, I've learn something new: having a var with '' is not the
same thing
as not been unset. So we must pay attention on what cases we use
isset, or
!empty.
T
Sorry all,
It's ok. The sintax:
'.$erros['anexo'].'' :''); ?>
Was right all the time.
Anyway, I've learn something new: having a var with '' is not the same thing
as not been unset. So we must pay attention on what cases we use isset, or
!empty.
Thanks a lot,
Márcio
> -Original Message-
On Tue, 2009-10-06 at 19:43 +0100, MEM wrote:
> Hello all,
>
> I'm trying to display a div, only when some php value is set.
> Since this will be near html, I'd like to keep it on one line. So, I'd love
> to use shortcuts and a ternary operator for the effect.
>
> I'm having something like this
Thanks. I will give up on
I mean, it will show the message only when the form gets submitted. At the
beginning it will have ââ.
:s
Regards,
Marcio
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: terça-feira, 6 de Outubro de 2009 19:49
To: MEM
Cc: php-general@list
On Tue, Oct 6, 2009 at 14:56, Dan Papakonstantino wrote:
> Hello Dan,
>
> Sorry for the misunderstanding however, we are web developers as well as
> hardware and software developers. You may have overlooked our web based
> timesheet application called SonicWeb. Please review the following link o
'.$erros['anexo'].'' :''); ?>
""MEM"" escreveu na mensagem
news:002401ca46b4$ed6ad6a0$c84083...@com...
Hello all,
I'm trying to display a div, only when some php value is set.
Since this will be near html, I'd like to keep it on one line. So, I'd love
to use shortcuts and a ternary operator for
On Tue, Oct 6, 2009 at 14:46, Israel Ekpo wrote:
>
> Speaking of starting a conversation, what do you think about the "goto"
> construct introduced just recently?
Better yet: what do you all think of folks hijacking threads?
--
daniel.br...@parasane.net || danbr...@php.net
http://www.paras
On Tue, Oct 6, 2009 at 2:34 PM, Jay Blanchard wrote:
> [snip]
> I find it interesting for a discussion to go on this long for something
> as
> $a = $a++;
> [/snip]
>
> You think that is interesting? Start a conversation about these
>
> {}
>
> --
> PHP General Mailing List (http://www.php.net/)
>
On Tue, 2009-10-06 at 13:34 -0500, Jay Blanchard wrote:
> [snip]
> I find it interesting for a discussion to go on this long for something
> as
> $a = $a++;
> [/snip]
>
> You think that is interesting? Start a conversation about these
>
> {}
>
Now they actually make sense! I've used those as
Hello all,
I'm trying to display a div, only when some php value is set.
Since this will be near html, I'd like to keep it on one line. So, I'd love
to use shortcuts and a ternary operator for the effect.
I'm having something like this right now, but the div still appears even if
the error is NOT
On Oct 5, 2009, at 7:42 PM, Manuel Lemos wrote:
Hello,
on 10/05/2009 03:02 PM Philip Thompson said the following:
I try to avoid the use of hidden form elements as much as possible,
especially for tracking whether a user has submitted a form or
not...
I use name="submit" for the submit but
On 10/6/09 10:26 AM, "Il pinguino volante" wrote:
> I have to realize an authentication system for a lot of users.
>
> I heard that someone uses to store session states (?) into a database. I'd
> like to know how and, expecially, WHY to do it and what's would be better
> (considering that I CANN
[snip]
I find it interesting for a discussion to go on this long for something
as
$a = $a++;
[/snip]
You think that is interesting? Start a conversation about these
{}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 11:11 AM -0700 10/6/09, Tommy Pham wrote:
I find it interesting for a discussion to go on this long for something as
$a = $a++;
which should have never happened in the first place ;)
Regards,
Tommy
Hey, we're programmers. We waste time for a living.
Cheers,
tedd
--
---
http://sperli
- Original Message
> From: tedd
> To: Martin Scotta ; Paul M Foster
>
> Cc: php-general@lists.php.net
> Sent: Tue, October 6, 2009 11:08:14 AM
> Subject: Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo
>
> At 10:48 AM -0300 10/6/09, Martin Scotta wrote:
> > No matter
At 10:48 AM -0300 10/6/09, Martin Scotta wrote:
No matter how silly it can looks like (a = a++) it is still completely valid
code and it SHOULD run without problems.
Yeah, it's a valid as:
$a = $a;
and does the same thing, which is nothing.
If you want a statement that does something, the
- Original Message
> From: Tommy Pham
> To: PHP General list
> Sent: Tue, October 6, 2009 10:41:42 AM
> Subject: Re: [PHP] Spry, XML, PHP and XSLT Hell
>
> - Original Message
> > From: Matthew Croud
> > To: PHP General list
> > Sent: Tue, October 6, 2009 1:32:18 AM
> > Subjec
At 12:46 PM -0500 10/6/09, Jay Blanchard wrote:
[snip]
...micro optimizations...
[/snip]
And in the land of micro optimization you would likely never see the
following;
$a = $a++;
I must live in the land of micro optimization.
Cheers,
tedd
--
---
http://sperling.com http://ancientstone
The problem with PHP micro-optimizations like that or ' vs. " is that
PHP rarely bottlenecks a PHP/MySQL application (actually if you run a
dedicated box, see how often your CPU hits 100%, it won't be very
often for the vast majority of PHP/MySQL sites which are more likely
to be disk i/o bound t
[snip]
...micro optimizations...
[/snip]
And in the land of micro optimization you would likely never see the
following;
$a = $a++;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 6:25 PM +0200 10/6/09, Andrea Giammarchi wrote:
er ... tedd, whatever, usually ++i is faster in almost every
language, and even C developers could use these kind of micro
optimizations.
Speed, even in this SuperCPU era, is still relevant, we would not
need benchmark to compare programming
- Original Message
> From: Matthew Croud
> To: PHP General list
> Sent: Tue, October 6, 2009 1:32:18 AM
> Subject: [PHP] Spry, XML, PHP and XSLT Hell
>
>
> Okey Doke,
>
> I'll try and be brief,
> Well, my client agreed to a small online store that would hold the same stock
> items wh
On Tue, Oct 6, 2009 at 12:25 PM, Andrea Giammarchi wrote:
>
> er ... tedd, whatever, usually ++i is faster in almost every language, and
> even C developers could use these kind of micro optimizations.
>
> Speed, even in this SuperCPU era, is still relevant, we would not need
> benchmark to comp
- Original Message
> From: Devendra Jadhav
> To: Yves Premel-Cabic
> Cc: php-general@lists.php.net
> Sent: Tue, October 6, 2009 6:18:13 AM
> Subject: Re: [PHP] Active Directory LDAP Help
>
> The existing Infrastructure is ready. and now at this point of time this is
> difficult to switc
At 12:18 PM -0400 10/6/09, John Nichel wrote:
Howdy guys and girls. Been a long time since I've been in these parts.
My php is rusty these days, so please bare with me. I'm trying to
create a dynamic, multidimensional array, and keep track of which level
I'm on, opening and closing levels as ne
If you are distributing your application over multiple servers, using a
database for session tracking allows a user to continue there session
regardless of which server their request bounces too. It prevents the
need for 'sticky' network connections which time out anyways. Databases
can make sc
er ... tedd, whatever, usually ++i is faster in almost every language, and even
C developers could use these kind of micro optimizations.
Speed, even in this SuperCPU era, is still relevant, we would not need
benchmark to compare programming languages for each purpose.
Of course in a crappy ap
At 10:07 AM +0200 10/6/09, Matthias Laug wrote:
argh, why do I always stick to the stupid questions :( sorry
Because with the important questions, you don't need answers. You
understand them.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
Howdy guys and girls. Been a long time since I've been in these parts.
My php is rusty these days, so please bare with me. I'm trying to
create a dynamic, multidimensional array, and keep track of which level
I'm on, opening and closing levels as needed. Lets say that I have some
data like the b
At 3:56 PM +0200 10/6/09, Andrea Giammarchi wrote:
> Does these behaves exactly?
for($i=0; $i<10; ++$i)
for($i=0; $i<10; $i++)
different benchmarks showed ++$i is usually faster than $i++
"Faster" is a relative term that is becoming more meaningless each year.
Considering that "speed" is
On Tue, Oct 6, 2009 at 11:34, David Otton
wrote:
> Is anyone from the list heading to PHPNW this weekend?
Coincidentally, the PHPNW UG meeting is listed for tomorrow, but I
have no listing for a conference this weekend. If you're in contact
with any of those folks, Dave, you can ask them to
Matthew Croud wrote:
Is there a way to store HTML in an XML file,
Access that node using XLST, and have it display as rendered html ?
As XHTML ypu can integrate it in an XML, by the use of XMLNS. But it
is OT.
In the XML, you declare two XMLNS. In the XSLT, you declare three XMLNS.
--
Mi
Mert Oztekin wrote:
> IMO, array_merge() is easy to use, however it suppose to use more cpu than
> other options. If you are a performance freak, i suggest you to not choose
> array_merge() solution. (also you execute date() and md5() functions even if
> you wont need to use them)
>
> In the ot
On Tue, Oct 6, 2009 at 11:34, Ashley Sheridan wrote:
>
> No, it is a little far out for me. Is there something similar in
> Londinium?
Best way to keep informed is through php.net. Don't make our
efforts be in vain! ;-P
--
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane
2009/10/6 Ashley Sheridan
> No, it is a little far out for me. Is there something similar in Londinium?
Dozens, probably. Try the PHPLondon guys, and the PHP UK Conference for a start:
http://www.phplondon.org/wiki/Main_Page
http://www.phpconference.co.uk/
--
PHP General Mailing List (http:/
On Tue, 2009-10-06 at 16:34 +0100, David Otton wrote:
> Is anyone from the list heading to PHPNW this weekend?
>
> Saturday:
>
> Keynote: The Uncertainty Principle
>
> Passing The Joel Test in the PHP world
> SPL, not a bridge too far
> Tools and Talent
> The beauty and the beast – API document
Is anyone from the list heading to PHPNW this weekend?
Saturday:
Keynote: The Uncertainty Principle
Passing The Joel Test in the PHP world
SPL, not a bridge too far
Tools and Talent
The beauty and the beast – API documentation with phpDocumentor
Getting a website out of the door
Optimizing Your
Hi to all.
I have to realize an authentication system for a lot of users.
I heard that someone uses to store session states (?) to a database. I'd
like to know how by expecially WHY doing that and what's would be better
(considering that I can -d'oh!- touch the php.ini file).
Thanks in adva
On Tue, 2009-10-06 at 15:10 +0100, Matthew Croud wrote:
> Hi,
> Is there a way to store HTML in an XML file,
> Access that node using XLST, and have it display as rendered html ?
>
> So far my attempts either return the text equivalent of the html, with
> nothing rendered.
>
> Cheers,
> Matt.
(There were some erroros in the previous email, I'm sorry)
Hi to all.
I have to realize an authentication system for a lot of users.
I heard that someone uses to store session states (?) into a database. I'd
like to know how and, expecially, WHY to do it and what's would be better
(considerin
Hi,
Is there a way to store HTML in an XML file,
Access that node using XLST, and have it display as rendered html ?
So far my attempts either return the text equivalent of the html, with
nothing rendered.
Cheers,
Matt.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On 10/6/09 4:16 AM, "Mert Oztekin" wrote:
> My mistake,
>
> I thought it was date() now strftime()
> Sorry
>
> (why do php developers create two different standarts for such similiar
> functions???☺ )
>
it's traditional to do so. it reminds me of the bit about subtly
incompatible shells in un
> Does these behaves exactly?
> for($i=0; $i<10; ++$i)
> for($i=0; $i<10; $i++)
different benchmarks showed ++$i is usually faster than $i++
In that loop case, yes, what's happen internally is exactly the same, $i will
be from 0 to 9, in the other case obviously is not the same.
but pre increm
On Tue, Oct 6, 2009 at 10:28 AM, Paul M Foster wrote:
> On Tue, Oct 06, 2009 at 08:51:17AM -0400, Bob McConnell wrote:
>
> > From: Joost [mailto:joost.t.h...@planet.nl]
> > > "Daevid Vincent" wrote:
> > >>> From: Ben Dunlap [mailto:bdun...@agentintellect.com]
> >
> > > $a = $a++;
> >
> > I jus
On Tue, Oct 06, 2009 at 08:51:17AM -0400, Bob McConnell wrote:
> From: Joost [mailto:joost.t.h...@planet.nl]
> > "Daevid Vincent" wrote:
> >>> From: Ben Dunlap [mailto:bdun...@agentintellect.com]
>
> > $a = $a++;
>
> I just think this is an ambiguous line of code that wasn't thought
> throu
The existing Infrastructure is ready. and now at this point of time this is
difficult to switch to the Linux based. I love linux but helpless now ...
There is not so much information available on php.net
On Tue, Oct 6, 2009 at 6:15 PM, Yves Premel-Cabic wrote:
> Why don't you use linux solutions
> It will be an accident
> if you get the results you are expecting.
I agree that the operation is illogical, I must disagree about accidents.
In PHP that operation will mean assign to the new $a variable the value
returned from the other $a variable before the increment.
There is no mystery
From: Joost [mailto:joost.t.h...@planet.nl]
> "Daevid Vincent" wrote:
>>> From: Ben Dunlap [mailto:bdun...@agentintellect.com]
> $a = $a++;
I just think this is an ambiguous line of code that wasn't thought
through. The presence of the postfix operator makes the result
undefined, no matter
Why don't you use linux solutions like RedHat Directory Server or
Mandriva Directory Server instead? (LDAP based too)
These solutions are scalable, free & fully documented on the web, not
like this shitty MS AD (but is there a non-shitty MS product :p)
This is also much more easier to debugg...
Hi All,
I am new to LDAP.
I want to create user on AD(Active Directory)
I have written script to do same, but I am getting "Operations error"
even I am successfully connected to AD and bounded with correct username,
password.
Also where will I get all attributes with its meanign... which attribute
Jim Lucas wrote:
Here is a problem that I have had for years now. I have been trying to come up
with the perfect solution for this problem. But, I have come down to two
different methods for solving it.
Here is the problem...
date('c'),
'Message-ID' => md5($to.$subject),
);
$headers +
Okey Doke,
I'll try and be brief,
Well, my client agreed to a small online store that would hold the
same stock items where only the quantities would differ, we agreed
that, due to infrequent changes, I would make pages for any new items,
and she would control stock etc using an e-shopping
Hi Mert,
But we're not talking about date() here, we're talking strftime().
According to the manual %i doesn't do anything in strftime(). Closest match
is %I which is 12-hour format for hours.
HTH
J
-Original Message-
From: Mert Oztekin [mailto:mozte...@anadolusigorta.com.tr]
Sent: 06
> but is implicitly converted into strings when it is entered.
use floatVal($str1) === floatVal($str2) then ... I honestly cannot spot any
problem in what you wanna do, I can just spot an error in the root of the
process: threat strings as numbers, comparing potatoes and tomatoes ...
there a
My mistake,
I thought it was date() now strftime()
Sorry
(why do php developers create two different standarts for such similiar
functions???☺ )
_
From: Mert Oztekin
Sent: Tuesday, October 06, 2009 11:07 AM
To: 'Jason'; 'Matthias Laug'; php-general@li
Matthias Laug schrieb:
> var_dump(strftime("%d.%m.%Y %H:%m",$time));
---^
> The minutes are always "10", no matter what time I get.
"%m" = month
"%M" = minute
Regards,
Carsten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
Jason,
%M is also month:
Month --- ---
F A full textual representation of a month, such as January or March January
through December
m Numeric representation of a month, with leading zeros 01 through 12
M A short textual representation of a month, three letters Jan through Dec
n Numeric represen
argh, why do I always stick to the stupid questions :( sorry
Am 06.10.2009 um 10:03 schrieb Mert Oztekin:
You also write the answer
var_dump(strftime("%d.%m.%Y %H:%m",$time));
there are 2 %m you see? %m is month :)
for minute use %i
-Original Message-
From: Matthias Laug [mailto:m
You also write the answer
var_dump(strftime("%d.%m.%Y %H:%m",$time));
there are 2 %m you see? %m is month :)
for minute use %i
-Original Message-
From: Matthias Laug [mailto:matthias.l...@gmail.com]
Sent: Tuesday, October 06, 2009 10:53 AM
To: php-general@lists.php.net
Subject: [PHP]
Hi,
That's because %m is month, what you need is %M for minute (note uppercase).
Check out http://php.net/strftime
HTH
J
-Original Message-
From: Matthias Laug [mailto:matthias.l...@gmail.com]
Sent: 06 October 2009 08:53
To: php-general@lists.php.net
Subject: [PHP] Time Problem: alway
Hey everybody,
I've got a strange problem. Using PHP5.3 on my MacBook.
There is a script, which handles input from user, in this case a date
and time.
So I get for example "10:30" and "06.10.2009". Standard german time
format. Now I try to get the correct timestamp:
$time = strtotime("06
- Original Message
> From: Andrew Mason
> To: Nathan Nobbe
> Cc: Matthew Croud ; PHP General list
>
> Sent: Mon, October 5, 2009 8:56:12 PM
> Subject: Re: [PHP] Spry, XML, PHP and XSLT Hell
>
> On Tue, Oct 6, 2009 at 4:37 AM, Nathan Nobbe wrote:
> > On Mon, Oct 5, 2009 at 10:10 AM, Ma
paragasu wrote:
why bother, i use available good library
http://swiftmailer.org/
Ok, bad example. I already use SwiftMailer. My "problem" though has nothing to do with sending an
email. I should have known someone would take it too literally.
Think a little more general. This is not a s
77 matches
Mail list logo