Link to home
Start Free TrialLog in
Avatar of robrodp
robrodpFlag for Mexico

asked on

php echo to a txt file

I create my ouput string and then:

 echo $output;

It goes to the display

How can I send it to a text file instead?
ASKER CERTIFIED SOLUTION
Avatar of haloexpertsexchange
haloexpertsexchange
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you want just a new file that you can skip the first part and just do the file_put_contents to write out a brand new file.