By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,829 Members | 2,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,829 IT Pros & Developers. It's quick & easy.

reading and writing to a php file

P: 1
I am a newbie at php and looking for help in writing the following code.

read a config file of eight characters
store in an array say xyz
update a config file of eight characters from data changed in array XYZ

I have so far been able to read and display and modify the data but unable to update the config file.

Help most appreciated

Oct 22 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 5,058
Hi Julien. Welcome!

How are you currently reading and modifying the data?
Can we see the code?

If you compile a string that contains the contents of the file you want to write, then you could simply use the file_put_contents function to write it.
Oct 22 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.