<?
if ( $_GET['go'] != '' ) {
include($_GET['go']);
}
?>
I am having a problem while using this code.. consider if the above code is saved as "123.php". If i want to open a html document called "Test.html" under a folder called "content", I will use "www.youngbuddy.com/123.php?go=content/Test.html" in the url bar. Here comes my problem, I am havin image("Image.jpg") file in "Test.html"(the image file also present in the same folder where "Test.html" present), While opening "www.youngbuddy.com/123.php?go=content/Test.html" it is not showing the image.. But if i open "www.youngbuddy.com/content/Test.html" it is showing the image.
The "www.youngbuddy.com/123.php?go=content/Test.html" is showing the image only when i change the image location in "Test.html" to "content/image.jpg(location from the folder where "123.php" is found)". This not happens not only in this page, in all the pages, it is very difficult to change all the location of images, document from root folder. Please help me
Sorry for my poor english if you cant understand. Below i created the pages to show what is my problem exactly. Please Help me.
Image location not changed "image.jpg":
www.youngbuddy.com/123.php?go=content/Test.html
www.youngbuddy.com/content/Test.html
Image location changed to "content/image.jpg":
www.youngbuddy.com/123.php?go=content/Test2.html
www.youngbuddy.com/content/Test2.html
Note:
Test.html is the file in which i saved the image location as "image.jpg"
Test2.html is the file in which i saved the image location as "content/image.jpg"
Pls help me ??? ??? ???