Jump to content

problem loading content from diferent dir than the root folder


mpempas

Recommended Posts

Ive looked around but with no luck at all,

 

i have a peace of code and when im visiting my site with www.mysite.com/?action=something everything is gread, but when im trying to load the content from www.mysite.com/something/ it goes to the default content becuse it cant find the file??!!?

 

Here is the code hoping someone can help me out with this.

<?php 
   if(file_exists($rootpath.$new_site.'.php')) {
    require_once($rootpath.$new_site.'.php'); 
            } else {
  // echo('file not found /'.$new_site);
      $_SESSION['default_cat'] = 1;
require_once($rootpath.$con_folder1.'/intro.php'); 
       }
   ?>

 

Hope anyone can give me solution

 

Thank you

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.