Re: file get contents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux