Re: Include???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Perhaps there is some whitespace before/after the 'C'...

echo "'$_POST[status_code]'<br />\n";

You should then see some whitespace inside the '' so you'll know it's
there.

This is a VERY good debugging technique to adopt. :-)


My own methodology is to use one of the following to peer into an array (of
any sort):

<code>
echo '<pre>';
print_r($_POST);
echo '</pre>';

echo '<pre>';
var_dump($_POST);
echo '</pre>';
</code>

Wrap one of those in a function or put it in a static class to call when
needed, and voila!, instant array introspection. Useful for $_GET, $_COOKIE,
$GLOBALS, $_SERVER, etc...

p.s.: Could you use descriptive subjects; include???? doesn't really say
much...

--
Jared Farrish
Intermediate Web Developer
Denton, Tx

Abraham Maslow: "If the only tool you have is a hammer, you tend to see
every problem as a nail." $$

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux