Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Where to Put PHP Code
Posted 10 January 2007 - 03:04 PM
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
Posted 11 January 2007 - 06:44 PM
Posted 19 January 2011 - 06:28 AM
clookid plz am newbie in PHP, plz can u help me? in my work place they ask me the create a Databank for our Staff, to verifed them for payment of salary, but i don't know how to create it. if u can help me am very happy here is my email firstname.lastname@example.org.
thank u very much and god bless u and ur family
Posted 02 June 2011 - 03:43 PM
Rename all your .html files to .php, Oh wait I guess that does kinda compromise run speed
TO be honest on a PHP server every page should be using PHP for headers and footers (even without MySQL you can use the include or require functions).