[PHP] Status code and Header(Location: )

2002-06-20 Thread Peter Thoenen
PHP Manual says there are two special cases for headers, Location and Status. Not to concerned about status here, but it states that Location: always returns an status code 302. Now HTTP/1.1 depreciates 302 since browsers were incorrectly implementing it anyways. It was replaces 302 with the

[PHP] preg and Perl 6 (upcoming..not current preg handling)

2002-06-26 Thread Peter Thoenen
Anybody know if PHP 4.x (5.x?) will be sticking with Perl5 RegEx syntax for preg's or will it be changing to the new Perl6 RegEx syntax (which I really dislike but what can you do, Larry has spoken). If we do plan to move to Perl6 RegEx, please implement the P5 modifier -Peter

[PHP] PHP code optimization

2002-07-09 Thread Peter Thoenen
Question on optimizing code for quicker runtimes. Which is quicker (this is on a webpage also..NOT commandline)? ?php if ($a){ echo 'abc'; } ? OR ?php if ($a) { ? abc ?php } ? Both do the same thing and are legit but wondering which is better from an optimization standpoint (NOT interested