Aite i made the change that you wrote.. <?php $page = $HTTP_GET_VARS['page']; if (!isset($_GET['page']) || $_GET['page']== "") {$page = "home";} else{$page = $_GET['page'];}; include ($page.".php"); ?> but the one i wrote works as well. The problem is that i got a gallery script that is in a sub-folder from my index.php ( /index.php and my gallery script in /gallery/index.php) - I want to link to it properly using php, so was wondering how to do that in the following: <a href="?????"> IMAGE LINK </a> -------------------- 2nd problem is this: Lets say that ive fixed the issue above - I now face this problem: As soon as i click a link on the gallery/index.php that has been imported into my /index.php it jumps out of my /index.php file and shows the gallery in a completely refreshed window without my original /index.php design. According to the guys that wrote this gallery script i need to do the following: [i]Since v0.9.10 it has been possible to include singapore into your web design using external.php. Just place this code where you want singapore to appear: <?php include("path/to/singapore/external.php");?> (supplying the correct relative or absolute path to singapore instead of '/path/to/singapore'). There are, however, a few things that need to be noted: You will almost certainly need to edit your chosen template in order that the HTML generated is still valid. For example you do not want two <html> start tags, two <head> sections etc. Alternatively you can use the external template (available to download from the website) which is the default template with the unnecessary (X)HTML removed. If the file into which you are including singapore is named something other than index.php or it requires additional GET variables (such as page etc.) then you will need to change index_file_url to reflect this. For example if the page you are including singapore into is site.php?page=gallery you will need to change index_file_url to site.php?page=gallery& [/i] Now i tried both solutions.. and i got the following error on my page: [i]Warning: main(): open_basedir restriction in effect. File(/gallery/external.php) is not within the allowed path(s): (/.../:/usr/lib/php:/usr/local/lib/php:/tmp) in /.../public_html/testing2/test.php on line 7 Warning: main(/gallery/external.php): failed to open stream: Operation not permitted in /..../public_html/testing2/test.php on line 7 Warning: main(): open_basedir restriction in effect. File(/gallery/external.php) is not within the allowed path(s): (/..../:/usr/lib/php:/usr/local/lib/php:/tmp) in /...../public_html/testing2/test.php on line 7 Warning: main(/gallery/external.php): failed to open stream: Operation not permitted in /..../public_html/testing2/test.php on line 7 Warning: main(): Failed opening '/gallery/external.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /..../public_html/testing2/test.php on line 7[/i]