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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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