clookid
203.***.***.***Where to Put PHP Code
Where to Put PHP CodeWhen the PHP program runs through your script, it looks for either <?php or <? then runs everything from there until the next ?>
You can configure PHP to run code between <% and %> tags too (ASP) though on IIS this probably isn't the wisest of ideas.
You need to tell your web server to run PHP files through the PHP program, too. This depends on which web server you have, though the PHP package has good instructions for most of the popular types. You should put your PHP code in files with the extension .php and configure your webserver to run .php files through the PHP program, though you can also force PHP to handle all .html files. The advantage to setting up .php as an extension is that files with no PHP code won't go through the PHP program, so you'll get better server performance.
EDIT: I just realized that this thread was in the wrong place, please move to "Articles and Tutorials."