Jump to content

chrisg7504

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

chrisg7504's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi thanks for the quick reply. Your method is what I used first off. But my issue is that on my local server the header.php file is located in www/hosting/include/header.php and the remote file location is public_html/include/header.php which kinda of throws me off a little.
  2. Using the method you described with the use of switch statements is a great idea and would be much easier to manage, but I always thought they were not search engine friendly?
  3. Hi, I am a total newbie at PHP and am trying my best to understand some things. I have a file called header.php located in includes/header.php I also have a file called h_shop.php located in cart/h/h_shop.php The problem I am having is how to automatically reference the header include using php instead of a numerous amounts of slashes. A config file would help as I have a number of pages in the folder cart/h/ This is what I started with but doesn't work mainly because I am testing on a local server and when I upload it I have to change all the files references again: <?php require("../../../include/header.php"); ?> Any help or understanding of this will help greatly. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.