[PHP] Tips for better PHP, wish I read yesterday

2002-07-17 Thread Peter J. Schoenster

Hi,

Awhile back I was asking for just what I'm reading here:

http://www.php9.com/index.php/section/articles/name/PHP%20Guidelines

Some snippets to give you an idea what you will find on that page:

 Another mistake I see around a lot is people writing scripts that will
 not work if register_globals is off. In the next release of PHP
 register_globals will be off by default, so you need to start writing
 your scripts with this in mind.


 ?php
 $name = 'Bill';
 echo table align=\center\trtdMy name is
 $name/td/tr/table; ?
 
 No, don't do that.


 ?=$name?
 
 This is a short-hand in PHP for:
 
 ?php echo $name; ?


I have come across some of this in the documentation but not in your face like it is 
here (and 
should be).

Does anyone have any more links to articles like that?

Thanks,
Peter

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




RE: [PHP] Tips for better PHP, wish I read yesterday

2002-07-17 Thread Jay Blanchard

[snip]
Awhile back I was asking for just what I'm reading here:

http://www.php9.com/index.php/section/articles/name/PHP%20Guidelines

I have come across some of this in the documentation but not in your face
like it is here (and
should be).

Does anyone have any more links to articles like that?
[/snip]

http://www.zend.com/zend/columns.php
http://www.zend.com/zend/art/mistake.php
http://www.zend.com/zend/art/



Jay

Nobody in football should be called a genius. A genius is a guy like Norman
Einstein. -Joe Theismann

*
* Want to meet other PHP developers *
* in your area? Check out:  *
* http://php.meetup.com/*
* No developer is an island ... *
*



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