[thelist] PHP - While Loop

Mark Joslyn Mark.Joslyn at SolimarSystems.com
Thu Aug 14 12:03:27 CDT 2003


<snip>
Can you confirm whether or not PHP files are being parsed correctly?
View the page source and see whether you see your PHP code there or
HTML output.
</snip>

As you are already up to 'While loops and other Conditionals" it seems like
you have tested things before in your current environment. (i.e. basic
outputting to the browser). But, if you have started with conditionals and
other loops, maybe go back to the drawing board and do some basic PHP stuff.
Try this:

<?php

echo "Hello World";

?>

If your browser outputs "Hello World" then you are parsing the PHP pages
correctly. If not, you have some installation/configuration changes to make.
This simple test could easily let you know if it is the codes problem or
your environments problem.

Hope this helps you narrow it down a bit.

Thanks,

markJ







More information about the thelist mailing list