You are here: Re: file get contents « PHP « IT news, forums, messages
Re: file get contents

Posted by "Ross" on 11/14/05 12:26

Ok...got it now.

Thanks for the tip max. It was that there was no parsing with the
file_get_contents function. Had another minor error but helped that I knew
include() was the way to go.

R.
""Ross"" <ross@aztechost.com> wrote in message
news:A1.80.07637.C4C58734@pb1.pair.com...
> Hello,
>
> I have been usng the file_get_contents function to insert a (repeating)
> part of my code
>
>
> $lines = file_get_contents('../shared/acessibility_box.htm');
>
> echo "$lines";
>
>
> In this file I have the a self submitting link
>
> <a href="<? $_SERVER['PHP_SELF']; ?>?text_size=small" class="size1">A</a>
>
>
> The problem I think is this code is inserted after the page headers have
> been set. And so the line just generates an error.
> When I roll over the link I get (or something similar)
>
>
> http://localhost/nhs/<? $_SERVER['PHP_SELF']; ?>?text_size=small
>
> I have tried most of the other similar functions (include, require) with
> no success.
>
>
> Any help would be great...
>
>
> Ross

 

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

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