Jump to content


Photo

[SOLVED] PHP Include changes target of link


  • Please log in to reply
13 replies to this topic

#1 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 13 October 2006 - 12:38 PM

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.freeh...com_quran......
to
http://www.islamcent...ption=com_quran

as the http://hanmia8.freeh...ption=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.

#2 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 17 October 2006 - 12:43 PM

anyone know?

#3 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 17 October 2006 - 12:54 PM

what is the code for that area??

Ray

#4 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 17 October 2006 - 12:56 PM

what do u mean?


#5 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 17 October 2006 - 12:59 PM

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

#6 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 17 October 2006 - 01:01 PM

thanks i'm in school now. check tomorrow evening i'll pm u with the code.

thanks.

#7 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 18 October 2006 - 12:28 PM

In the meantime... does anyone else know how to solve this problem...

Thank You :D

#8 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 19 October 2006 - 12:29 PM

aaaghhhhhh, i'm sure someone knows ???. It is a simple thing to do i think.

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

Thanks


#9 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 21 October 2006 - 06:56 PM

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

#10 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 21 October 2006 - 07:30 PM

Without seeing you're code, it's pretty hard to decifer what you are doing.

Ken

#11 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 21 October 2006 - 09:49 PM

here's the include code that i use:
--------------------------------------------------------------------------------------------------
<?php print file_get_contents('http://hanmia8.freeh...w&id=5&Itemid=6'); ?>
----------------------------------------------------------------------------
hope that helps

#12 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 22 October 2006 - 12:30 PM

?

#13 sasa

sasa
  • Staff Alumni
  • Advanced Member
  • 2,804 posts
  • LocationHrvatska

Posted 22 October 2006 - 01:09 PM

try
<?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')); ?>


#14 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 22 October 2006 - 10:22 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users