How do I do,
$votes=fopen("votes.txt", "r");
where inside votes.txt is just the number 1.
and then,
$votes++;
so that $votes becomes 2. When I do $votes++ it messes up
Adding variables
Moderator: General Moderators
- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
fopen() returns a file resource to be used be other related functions. See file_get_contents().