>Anyone know how to do have a variable equal the contents of a file?  I tried
>the include function, but it just prints the file out on the screen rather
>than including the contents in the variable itself.  I need help with this
>ASAP.  Thanks.

<?php
  $data = file('/full/path/to/filename') or die("Could not open file.");
  $data = implode('', $data);
?>


-- 
Like Music?  http://l-i-e.com/artists.htm


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

Reply via email to