Where to Put PHP Code

Status
Not open for further replies.

Baljeet

Member
Jan 31, 2011
76
0
Where to put PHP code

When 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.

This tutorial was written by another one of my friends, if you would like to use this tutorial please send me a PM

All Credits goes to one who really made this...
 
Status
Not open for further replies.

Users who are viewing this thread

Top