Jump to content

PHP Web Pages

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
atrip25

atrip25

    Newbie

  • Members
  • PipPip
  • 26 posts
Is it possible to create a Web page consisting entirely of PHP scripting statements? Is it feasible to do so?

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
Possible, absolutely.
It's not hard either, just do
<?php  echo "<html><head>";
and so on for your output. but as PHP is constructed, it's lots easier to write
<html><head>
<?php
// do the php stuff
?>
</body></html>

But there are times where you let php do all output, yes.
It is often a matter of how you want to code as well.

I do the first version almost all the time if I don't use a template handler
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall