member Posted October 13, 2006 Share Posted October 13, 2006 Hi,I got a problem: when u go to www.islamcentre.net, you can see the arabic text part. and below that there is a bit of text that has "srh..." in purple colour. The pronlem is, is that it changes the link from http://hanmia8.freehostia.com/index.php?option=com_quran......tohttp://www.islamcentre.net/index.php?option=com_quranas the http://hanmia8.freehostia.com/index.php?option=com_quran is a Joomla module I cannot use it for my non Joomla site. Is there a piece of code to change the target url back to normal?or open it in a new window?If u don't get my way of saying it, post here and i'll give u some extra information if u need to know.Thank You. Your help is most appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/ Share on other sites More sharing options...
member Posted October 17, 2006 Author Share Posted October 17, 2006 anyone know? Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-109988 Share on other sites More sharing options...
craygo Posted October 17, 2006 Share Posted October 17, 2006 what is the code for that area??Ray Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-109994 Share on other sites More sharing options...
member Posted October 17, 2006 Author Share Posted October 17, 2006 what do u mean? Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-109995 Share on other sites More sharing options...
craygo Posted October 17, 2006 Share Posted October 17, 2006 copy and paste the code for the page so I can see what is going on to fix it. Might be a simple fix once looking at the code.Ray Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-110000 Share on other sites More sharing options...
member Posted October 17, 2006 Author Share Posted October 17, 2006 thanks i'm in school now. check tomorrow evening i'll pm u with the code.thanks. Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-110001 Share on other sites More sharing options...
member Posted October 18, 2006 Author Share Posted October 18, 2006 In the meantime... does anyone else know how to solve this problem...Thank You :D Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-110614 Share on other sites More sharing options...
member Posted October 19, 2006 Author Share Posted October 19, 2006 aaaghhhhhh, i'm sure someone knows ???. It is a simple thing to do i think.I'm no good with php, newbie here,. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-111198 Share on other sites More sharing options...
member Posted October 21, 2006 Author Share Posted October 21, 2006 no one can figure this out? come on u brainy people. I'm no good with php. Thanks for your help, much appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-112398 Share on other sites More sharing options...
kenrbnsn Posted October 21, 2006 Share Posted October 21, 2006 Without seeing you're code, it's pretty hard to decifer what you are doing.Ken Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-112408 Share on other sites More sharing options...
member Posted October 21, 2006 Author Share Posted October 21, 2006 here's the include code that i use:--------------------------------------------------------------------------------------------------<?php print file_get_contents('http://hanmia8.freehostia.com/index.php?option=com_content&task=view&id=5&Itemid=6'); ?>----------------------------------------------------------------------------hope that helps Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-112478 Share on other sites More sharing options...
member Posted October 22, 2006 Author Share Posted October 22, 2006 ? Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-112651 Share on other sites More sharing options...
sasa Posted October 22, 2006 Share Posted October 22, 2006 try[code]<?php print str_replace('index.php','http://hanmia8.freehostia.com/index.php', file_get_contents('http://hanmia8.freehostia.com/index.php?option=com_content&task=view&id=5&Itemid=6')); ?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-112657 Share on other sites More sharing options...
member Posted October 22, 2006 Author Share Posted October 22, 2006 yup, that works!!!!! thanks so much, i have been looking for a solution to this problem for ages.Thanks once again, It is much appreciated Quote Link to comment https://forums.phpfreaks.com/topic/23843-solved-php-include-changes-target-of-link/#findComment-112848 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.