Reply to Re: Change included code

Your name:

Reply:


Posted by Darko on 04/19/07 18:37

On Apr 19, 6:18 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Jon Slaughter wrote:
> > Can I modify code that I have included using
>
> > <?php
> > include("../Index.php");
> > ?>
>
> > The Index.php file contains links that need to be modified to work.
> > Index.php is basically an html file uses a linked css file and when its
> > included in the new file its referencing a css file in the wrong spot. I
> > need to add "../" to the css file reference in Index.php to make it work.
>
> > Thanks,
> > Jon
>
> Ensure your link is an absolute path relative to your website root.
> Then where you include index.php doesn't matter.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

Or, if you really want to do what you've asked to do, then you could,
instead of include-ing it into the script, and if it isn't ALL just
html and has some PHP needed to be parsed, you could fopen it, read
the contents, strreplace strings with whatever you want, then eval the
entire string. Not a good idea, pretty ugly, but there you have it :)

[Back to original 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

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