Jump to content

modrewrite/htacces problem


sirenka

Recommended Posts

Hi all!

I'm new here and i have a problem :-[

 

I have problem with relatives paths while using include();

ex. include('../folder/test.php'); returns warning 'there is no such file'.

 

 

mysite structure is like this:

 

root:

  - admin/

  - folder/

        -test.php

  - music/

        - main.php

 

I access the music/main.php with mymusic/main.php as i rewrite  mymusic/main.php with music/main.php.

 

This works but the problems appears in my main.php where i include include('../folder/test.php')  an error ocurs that file does not exist;How can i rewrite that? if i change include('../folder/test.php')  to include('folder/test.php') it works, but i dont want to change that.

 

Can someone help me with this please.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/116306-modrewritehtacces-problem/
Share on other sites

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.