Reply to Re: [PHP] file get contents

Your name:

Reply:


Posted by Richard Davey on 11/14/05 11:53

Hi Ross,

Monday, November 14, 2005, 9:44:45 AM, you wrote:

> $lines = file_get_contents('../shared/acessibility_box.htm');

> 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.

file_get_contents does exactly that - it gets the contents of the file
*without* parsing it, i.e. any raw PHP code that exists within it,
will be treated as what it is when 'got' = plain text.

Cheers,

Rich
--
Zend Certified Engineer
PHP Development Services
http://www.corephp.co.uk

[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

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