Jump to content

kganesh20

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kganesh20's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for your reply... Im having lot of images and php files and flash files in my website... So i need to change all the path of all the files.. It will take long time to done.. So is there any other way to show the image by setting the src as image.jpg instead of content/image.jpg
  2. It showing the same result.. ??? here is the link to show the result of the above code http://www.youngbuddy.com/testtest.php?go=content/test.html Code used in testtest.php: <? if ( $_GET['go'] != '' ) { include($_SERVER['DOCUMENT_ROOT'].'/'.$_GET['go']); } ?>
  3. <?php $file = file_get_contents($_GET['website']); echo $header_data; // incase you have a header like on the sites example you need to print that out first echo $file; echo $footer_data; // footer comes last etc. ?> This code also not solved my prob...Here i will tell what my prob actually is.... Consider The file 123.html contains images which are also in the same dir(content).. If i execute Http://www.youngbuddy.com/main.php?go=content/test.html When includeing the html file on the main page... it includes it as if it's actually executing the file. So it's trying to get the image file from the same dir where main.php is present and not the dir content/. It is not posible for me to change all the locations of images, pages, etc from the root dir.... for that main.php file
  4. I got this error when done with includ.txt and test.php Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\youngbuddy.com\httpdocs\test.php on line 2 Warning: include(http://www.google.com) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\youngbuddy.com\httpdocs\test.php on line 2 Warning: include() [function.include]: Failed opening 'http://www.google.com' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\youngbuddy.com\httpdocs\test.php on line 2
  5. Thanks premiso As you told before tamilflame.com does not execute code, instead just grabs it in a string/array and printing it to the screen. Thats what i am searching for.... Just now im started to learn php.. Can u write the code?
  6. But in these site you can see the thing can be done.. what i've told before http://www.tamilflame.com/test.php?go=home.php http://www.tamilflame.com/home.php http://www.tamilflame.com/test.php?go=http://www.google.com Not only google any site Any one know how to do this? pls help me
  7. While using this i get the error Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in F:\xampp\htdocs\New\Main1.php on line 7 It is not posible for me to change all the locations of the files...... Is there any other way to solve this? ???
  8. <? 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 ??? ??? ???
×
×
  • 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.