You can insert php scripts into your html page.
Starting with "<?php" tag, ending with "?>". If whatever tutorial or book you're studying doesn't mention this, find a new one.
Example:
You can insert php scripts into your html page.
Starting with "<?php" tag, ending with "?>". If whatever tutorial or book you're studying doesn't mention this, find a new one.
Example:
I tried with semicolon - still not working. Tried try-catch version - not working.
But it seems to be that the problem is not access path nor permissions.
It's the
block does not even get processed. I tried an only single line
and nothing happens.
I browsed my settings maybe php is...
I posted URL and contents of menu.txt but the forum engine replied that my post will be published only after a moderator approved it.
Maybe because of containing Url it seemed to be spam to the forum engine.
Hi, link to my page: http://pistuka.x10hosting.com/. The menu should appear on the right side.
Contents of menu.txt:
<h2>Temas tipicos</h2>
<ul>
<li><a href="index.html">Introduccion</a></li>
<li><a href="seguridad.html">Seguridad, sobrevivencia</a></li>
<li><a...
Thanks, I have tried. Still not working.
After trying I displayed the source of my page. Between the HTML tags and text I can see the
<?php
require("menu.txt")
?>
PHP code... Does this mean that the code was not even processed? Maybe PHP not supported?
Thanks.
Hi Everyone,
I am building a simple site of some pages consisting of text + some photos + menu on the right side.
I have a file named menu.txt in /home/pistuka/public_html directory.
In order to display the same menu on every page I want to load this txt file to be part of my html pages...