Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Vincent Vandemeulebrouck
o implement a "stripcomment" script, that you run when you move your script from your development server to your production server. And anyway, this would not be significant, unless you recompile a custom PHP version where you remove the comment parsing. This would be intereting if your c

Re: [PHP] FAQ a good idea?

2002-11-22 Thread Vincent Vandemeulebrouck
> An about register globals post bi-weekly would eliminate tons of questions I > reckon. But maxim is also right. People should find their own info and a faq > could dominate the group... The fact you must call session_start before sending anything to the browser is another FAQ that would help.

[PHP] catching a robot or spider - asking too

2002-11-19 Thread Vincent Vandemeulebrouck
e, what kind of stylesheet I should include to make the page correct (if I even have to). Anyway, the real question behind is : Is there a good way to handle the user agent info? Vincent Vandemeulebrouck http://www.leguerriersorde.com/ -- PHP General Mailing List (http://www.php.net/

Re: [PHP] check for \n

2002-11-18 Thread Vincent Vandemeulebrouck
> > } > > Use strstr() with "\n" as the needle. Check out the "String functions" > chapter, lots more goodies there. Or, try the following: $sql = "SELECT id,ST FROM ccl.ccl_main where ST like '%s\n%s' "; I am not 100% sure it will work w