file get contents

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

 



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

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