[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)?



OR

 abc 

Both do the same thing and are legit but wondering
which is better from an optimization standpoint (NOT
interested in readability or *proper* code here)

-Peter

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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 MUSTS 303 and
304.  (304 is the correctly handled 302, and 303 is
the current incorrect way most browsers implement 302)

Since PHP seems to always return 302, is it possible
to force HTTP/1.1 compliance and return 303 or 304
depending on my situation?

-Peter


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php