You are here: Re: php template and broken links « All PHP « IT news, forums, messages
Re: php template and broken links

Posted by Ralph Zajac on 09/28/43 11:16

Hi

> I don't understand what you mean when you talk about loading a page into
> the centre column. Do you mean you intend to use frames?

Sorry it's my lack of good English.

I'm loading pages to the middle column of the page located in a root
directory of my websites (/index.php) using ex: <?php
include('inst/page1.php'); ?>



All links on loaded page are relative to page folder /inst. So for example
my image link is

<img src="../images/nfs2.gif">



but when the page is included to page /index.php all links don't work
because they should be relative to page /index.php -> <img
src="images/nfs2.gif">.



Now. Do I have to change all links on my sub-pages so they are relative to
/index.php? Or maybe there is a way around it?

The other thing is that when I change links and I put in my browser
http://something.com/inst/page1.php all links are broken because I changed
them to be relative to /index.php.


Thank you
Ralph

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация