Jump to content

[SOLVED] PHP Include changes target of link


member

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.