Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

realtive URLs in includes

penis.com/index.php has navigation which is included from penis.com/nav.inc
it uses relative URLs of course so it just includes nav.inc

right??

ok everything works cool!!

then i want penis.com/porn/index.php to use the same include (nav.inc)

nav.inc has a link that goes to penis.com/vaginas.php (but of course it's written as a relative URL so it technically only leads to vaginas.php)

but because it's included in penis.com/porn/index.php when i click the link it goes to penis.com/porn/vaginas.php

problem is clear now??

includes give me to vaginas.php how i made it take me to vaginas.php?
 

___

Sponsor

../vaginas.php should actually work in this circumstance.  But it would fail again if you included it in, say, /porn/despain-nudes/ .
if you use "<?php echo $_SERVER["SITE_HTMLROOT"] ?>/vaginas.php" you'll start from HTML root.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top