|
Posted by NC on 03/10/06 18:29
brianwalker@i-rent.us wrote:
>
> when i use the php command <?php include ("info.txt"); ?>
There's no need to use include() for anything other than PHP files. If
you just want to output the contents of the file, use readfile()
instead.
> Is there any way to use php to just display what
> apprars after the &content= in my text file.
....
> "
> title=CDN HOME &content=The COMPUTER DONATION NETWORK
> is a resource of new, used and refurbished computer equipment, software,
> networking gear and lab furnishings for "
Yes:
list(, $content) = explode('&content=', file_get_contents('info.txt'));
echo $content;
Cheers,
NC
Navigation:
[Reply to this message]
|