i defined a BASE url in my html tags, but my php-includes doesn't follow this. is there a way to set a base url within php? do i change a _SERVER variable or something?

there's a probably pretty simple answer for this. just cant seem to figure it out... 😛 thanks.

...OR BETTER YET...
is there a way to make my absolute links work?
i.e. <?php include="/includes/blah.php" ?>

cuz right now it resides on /var/www/html/includes/blah.php, but it tries to look for the file in /includes/blah.php.

    you can use substr to trim the folder location.

    print substr ("/var/www/html/includes/blah.php", 13);
    

    out puts /includes/blah.php

    no matter what addres it looks up it will drop /var/www/html/

      so ur saying i can reset the reserved variable? 😕 after i've concantenated? i don't wanna have to concatenate each time i call an include

        not sure what you want to do then...

        <?php include="/includes/blah.php" ?>

        should be
        <?php include="includes/blah.php" ?>

          You can modify your etc/htdocs document folder to include the location of your scripts.

          Also you can set up a test domain to run the app and modify your /etc/httpd/vhosts/Vhost.conf

          <Virtual.....>
          domain name ........
          document root ........
          </>

            You can modify your etc/htdocs document folder to include the location of your scripts.

            Also you can set up a test domain to run the app and modify your /etc/httpd/vhosts/Vhost.conf

            <Virtual.....>
            domain name ........
            document root ........
            </>

              Write a Reply...