however, since PHP also stores variables for system settings in this same global
namespace, some of which are not always populated, it is pretty easy for a user to
spoof your script by passing in variables with the correct names.
I wondered about this a few months ago, it seems like a pretty insecure system if you ask me.
Wouldn't it also be possible for someone to use serious memory on the box by making a request like:
foo.php?foo=bar&baz=foo&bar=foo&morefoo=foo etc.
I suppose it wouldn't be so much of a problem with GET, as surely it is limited by the size of an
environment variable (at least on UNIX that is). What about POST though?
IMHO PHP may be ok for web/CGI-type apps, but you can't make a nice runnable "normal" program with it, can you?
Therefore I would imagine that learning Perl is a better use of your time.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.