At 1/4/09 09:40 PM, BillysProgrammer wrote:
OMG, ill say this to you guys again and again
I know it doesnt, but u can USE php in ASP except there is a different tag rule.
Pay attention to the irc next time
Ummm no, not quite. You can configure php.ini to work with <% tags as well as <?php tags; but this is strongly encouraged again (for hopefully obvious reasons). It has nothing to do with ASP.
Also, oh dear. I've found so many problems with this (sorry if these are too harsh, I appear to have a sinus infection and am very irritable).
- Your tags page has a syntax error on the <% tag (no closing ').
- Your short, medium and long variables section far flat out bollocks; the first example is a normal variable (that you either define yourself or are dumb enough to have register_globals set to on in your php.ini), your second is a superglobal array ($_POST, $_GET etc.) and your third is the deprecated method of working with superglobals. You should talk more about variable types and arrays and (possibly) objects.
- Your page on constants doesn't really mention what they are for; making your code easier to read. ARTICLES_PER_PAGE is more descriptive than 20. You'll find most people don't use constants so much because they are so very, very ugly in PHP.
- You don't talk about doing comparisons at all in your if statements page. You should really mention using >, >= etc. You should also just use an else in your example; checking if it's true then checking if it's false looks really dumb.
- Formatting strings should really talk about using (s)print_f functions. I understand that this is a work in progress but they're sort of important.