Jump to content

Archived

This topic is now archived and is closed to further replies.

member

[SOLVED] PHP Include changes target of link

Recommended Posts

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......
to
http://www.islamcentre.net/index.php?option=com_quran

as 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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
thanks i'm in school now. check tomorrow evening i'll pm u with the code.

thanks.

Share this post


Link to post
Share on other sites
In the meantime... does anyone else know how to solve this problem...

Thank You :D

Share this post


Link to post
Share on other sites
aaaghhhhhh, i'm sure someone knows ???. It is a simple thing to do i think.

I'm no good with php, newbie here,.

Thanks

Share this post


Link to post
Share on other sites
no one can figure this out? come on u brainy people.
I'm no good with php.
Thanks for your help, much appreciated.

Share this post


Link to post
Share on other sites
Without seeing you're code, it's pretty hard to decifer what you are doing.

Ken

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

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.