Process txt files with PHP using .htaccess?

  • Thread starter Thread starter robing
  • Start date Start date
R

robing

Guest
I want PHP to process txt files. Can I use the .htaccess file to change this PHP setting and if so how?
Thanks very much.
Thanks for you help bu that is not quite what I am looking to do. PHP must process the txt file so that I can put <?php ?> tags in the text file and it will be dynamicly created. I know this can be done if you have acces to the php.ini file on the server but this is not an option in my case so I want to kno if it is possible to use the .htacces file.
Thanks.
 
if your looking to access text the syntax is like this (i think been a while since i wrote php)
<?php
$file=fopen("PlaceFileNameHere.txt","r") or exit("Unable to open file");
while (!feof($file))
{
echo fgetc($file);
}
fclose($file);
?>
 
Back
Top