Jumping to a page back: Strange behavior of Firefox and InternetExplorer

B

Ben Bacarisse

dorayme said:
Udo Huebner <[email protected]> wrote:
In all your html files (even though they might end in .php) at the
point at which you would normally have something like

<ul class="footer">
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
</ul>

you instead put

<?php include ("includes/footer.inc"); ?>

I'd suggest using '...' rather than "..." when offering "cut-and-paste"
code since there is only one special case with '...' quotes. Windows
users in particular may fall foul of writing "includes\footer.inc" with
unintended effects. Also (minor point) include is not a function but a
control structure, so the brackets are not needed. The ; is also
optional at the end of PHP section, so the simplest include looks like
this:

<?php include 'includes/footer.inc' ?>

I think it helps to make it all seem slightly less magical.

<snip>
 
D

dorayme

Ben Bacarisse said:
I'd suggest using '...' rather than "..." when offering "cut-and-paste"
code

I was not offering cut and paste code. I was pretending to be human
and assuming that another human reading me would understand that where
I had "..." they would have text, simple as that. But what do I know,
your knowledge of these things is likely greater as you are likely a
real human unlike my cheating self.
... the brackets are not needed. The ; is also
optional at the end of PHP section, so the simplest include looks like
this:

<?php include 'includes/footer.inc' ?>

True. I was looking for a simple something in a url to refer OP to but
gave up and wrote a cheating mini one for him but not before lazily
cutting and pasting the above from an example in some page that was
not too unreasonable.
I think it helps to make it all seem slightly less magical.

Depends on your understanding of magic. Perhaps the pretty and
extravagant

<?php include (((((("includes/footer.inc"))))));;;;;;;;;; ?>

would more magical. Perhaps in the world of magic, Ockham's Blooming
rather Ockham's Razor operates.

Perhaps, humans do not grok magic well in spite of all their religious
efforts.
 
U

Udo Huebner

Am 01.02.2012 04:16, schrieb dorayme:
Hi dorayme and Ben -
thanks for the comments, especially to dorayme for his extensive
informations.
Regards Udo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,075
Messages
2,570,562
Members
47,197
Latest member
NDTShavonn

Latest Threads

Top