abdus Posted June 1, 2007 Share Posted June 1, 2007 hi,developers, I want to require (or include no problem) a remote file (page) and retain its original links when I try to so, the URLs changed and indicate to my server. is it clear Quote Link to comment https://forums.phpfreaks.com/topic/53873-solved-require-and-links/ Share on other sites More sharing options...
taith Posted June 1, 2007 Share Posted June 1, 2007 the "only" way... would be to make the links on that other page, non relative... so... instead of index.php... http://www.domain.com/index.php Quote Link to comment https://forums.phpfreaks.com/topic/53873-solved-require-and-links/#findComment-266347 Share on other sites More sharing options...
per1os Posted June 1, 2007 Share Posted June 1, 2007 If you set the < base href="http://www.othersite.com" /> in the output of the other page it will assign all the links to that site. Quote Link to comment https://forums.phpfreaks.com/topic/53873-solved-require-and-links/#findComment-266348 Share on other sites More sharing options...
taith Posted June 1, 2007 Share Posted June 1, 2007 or that... lol Quote Link to comment https://forums.phpfreaks.com/topic/53873-solved-require-and-links/#findComment-266354 Share on other sites More sharing options...
abdus Posted June 1, 2007 Author Share Posted June 1, 2007 taith,frost110 thanks a lot for this rapid replies (wow,only 5 minutes ) it worked well with <base href ='URL'> another thing .. can I do some manipulation in the output page?? I mean for example changing the style or omitting some texts thanks in-advance Quote Link to comment https://forums.phpfreaks.com/topic/53873-solved-require-and-links/#findComment-266390 Share on other sites More sharing options...
per1os Posted June 1, 2007 Share Posted June 1, 2007 www.php.net/str_replace you can, if you are including it you may also need to look into: www.php.net/ob_start www.php.net/ob_get_contents www.php.net/ob_end_clean Quote Link to comment https://forums.phpfreaks.com/topic/53873-solved-require-and-links/#findComment-266402 Share on other sites More sharing options...
abdus Posted June 3, 2007 Author Share Posted June 3, 2007 thank you for assistance I will try these funcs Quote Link to comment https://forums.phpfreaks.com/topic/53873-solved-require-and-links/#findComment-267403 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.