Ah lol.... i tried that before. Lol thanks!
Main Topics
Browse All TopicsSomthing like this...
<?php
$string = fopen("textfile.txt","r");
echo $string;
?>
I dont want to use the "include" function or anything like that. I want to load the text file into the variable. So i can edit the variable.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thank you Bolter99.
Why did you grade the answer as a "C"? Please remember the grades at EE aren't schoolgrades, and as long as experts gives you the correct answer, you should grade them "A". If you don't think the comment deserves an "A", then you should explain more deeply what you want so that the experts have a chance to earn the "A" grade. It's no big deal for me, but it could be nice for you to remember till next time if you want someone to answer your question:-)
Batalf
I understand how you think, but actually, the grades at EE have nothing to do with the question. Yes, it was an easy question, and that's why you posted is as a 50 points question. The grade is how you grade the answer no matter how easy the question was. A correct answer to an easy question should always be graded as an "A". The points you give is how you "grade" the question.
It's no big deal for me, but you should know that alot of experts looks at your history to see how you grade before they decide to use time answering your questions.
Batalf
Business Accounts
Answer for Membership
by: BatalfPosted on 2005-03-11 at 05:24:45ID: 13516536
$data = file_get_contents ( "textfile.txt" );