in reply to OT: from perl to php

The "check syntax" appears to be the -l (lowercase L for Lint) flag. I don't know if there's any such thing as -w, although you might find something on this page. Does PHP even have warnings the way Perl does? It's not that type of language, I don't think. I see "warnings" from PHP pages all the time on the web, when they've failed completely.


($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re^2: OT: from perl to php
by asz (Pilgrim) on Mar 26, 2006 at 11:11 UTC
    I see "warnings" from PHP pages all the time on the web, when they've failed completely.

    those warnings can be disabled when running PHP code in production, but people are often unaware of the (possible) security risks that those warnings reveal... or they just don't care - so they don't disable them :(   i guess the reason they're enabled by default is that PHP tries to be userfriendly.

    ...but what do i know?! i started playing with PHP 2 weeks ago. the similarities with Perl made it easy for me to learn and start using...

    :)))))