FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Stuck on Exercise 1
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Stuck on Exercise 1 [message #178648 is a reply to message #178640] Sun, 15 July 2012 14:19 Go to previous messageGo to previous message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma:
Senior Member
In article <jtucba$78l$6(at)news(dot)albasani(dot)net>,
The Natural Philosopher <tnp(at)invalid(dot)invalid> wrote:

> AFAIK all php programs MUST start with <?php even if they are
> immediately reverted to text with ?>
>
> So try
>
> <?php ?>
>
> as the first line.

Mmmm, no. If f'rinstance you're running it as a CLI script you'd prolly
want it to start:

#!/usr/bin/php
<?php

etc.

If OTOH you have it as a script for apache to run, it doesn't matter.
You can start with plain text, which will just be sent to the browser.
Any <?php ?> blocks are interpreted and any output they produce will be
sent to the browser. You can as many such blocks as you like with text
in between, or none at all. Or put everything inside one such block.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Lost $_SESSION in Google Chrome
Next Topic: Business Developer for IT company
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 14:55:52 GMT 2024

Total time taken to generate the page: 0.04534 seconds