sirenka Posted July 23, 2008 Share Posted July 23, 2008 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 More sharing options...
Goldeneye Posted July 24, 2008 Share Posted July 24, 2008 Why don't you want to change it? Did you try: just removing the two dots (..) and not the slash (/)? Link to comment https://forums.phpfreaks.com/topic/116306-modrewritehtacces-problem/#findComment-598131 Share on other sites More sharing options...
sirenka Posted July 24, 2008 Author Share Posted July 24, 2008 I have a lot of files that i have to change, but even if i remove .. and leave the / it doesn't work, it works if i remove ../ Link to comment https://forums.phpfreaks.com/topic/116306-modrewritehtacces-problem/#findComment-598359 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.