Search results

  1. P

    PHP require... what is wrong?

    That is something I did not know. Sorry.
  2. P

    PHP require... what is wrong?

    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:
  3. P

    PHP require... what is wrong?

    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:
  4. P

    PHP require... what is wrong?

    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...
  5. P

    PHP require... what is wrong?

    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.
  6. P

    PHP require... what is wrong?

    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...
  7. P

    PHP require... what is wrong?

    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.
  8. P

    PHP require... what is wrong?

    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...
Top