I got the plan all down in my head,i just need help with the php functions since im a newbie lol.
here’s my plan,
User asks me to make them a account and i make a text file with their id. Then they go to a point page where it asks them for their id then redirects to a page, http://mysite.com/points/givepoints.php?id=1. Then it opens and adds a point to their text file using the $_GET['id'] method. Then it redirects to another page saying they got their points.
My problem is i cant even open,read,and close the file;open,write the file + 1,and close it.
I would also protect the url being accessed over by seeing if they came by a certain url.i tryed this code but it wont work for me =\ ,
[code]<?php
echo $_SERVER[‘HTTP_REFERER’]
?>[/code]
can anyone help me out with this?and if i need to explain myself better just say so