deleting an entry in a text file via php?
Posted: Wed Jun 07, 2006 2:02 pm
Hi,
I have a flash site that uses php and txt files to generate and manipulate information on the site. In this particular example, i have flash drop-down component, that loadsVariablesNum from a dropdown.txt file. The file would have code like this:
&items=Link 1, link 2, link 3&urls=http://www.yahoo.com/, http://www.2advanced.com/, http://www.euroblitz.org/,
The flash splits these items by their commas, creating an array that adds them into the drop down menu. Obviously the item id is what you see as the label, and the url is the value of what happens when you select that id from the drop down.
I had also created a form in flash that ads items to the array and writes them to that dropdown.txt file by calling the dropdown.PHP file, which takes the info from flash, and writes it to the txt file. That all works fine from there.
But here is where i am stumped. I want to creat a form in flash that also deletes an entry, or edits one. How in the world do i single out 1 entry in the txt file and then delete or edit? Perhaps its something i have to get in flash... beats me.... Im just not all incredible when it comes php syntax and commands.
Any helps is much appreciated. Thanks,
Noah
I have a flash site that uses php and txt files to generate and manipulate information on the site. In this particular example, i have flash drop-down component, that loadsVariablesNum from a dropdown.txt file. The file would have code like this:
&items=Link 1, link 2, link 3&urls=http://www.yahoo.com/, http://www.2advanced.com/, http://www.euroblitz.org/,
The flash splits these items by their commas, creating an array that adds them into the drop down menu. Obviously the item id is what you see as the label, and the url is the value of what happens when you select that id from the drop down.
I had also created a form in flash that ads items to the array and writes them to that dropdown.txt file by calling the dropdown.PHP file, which takes the info from flash, and writes it to the txt file. That all works fine from there.
But here is where i am stumped. I want to creat a form in flash that also deletes an entry, or edits one. How in the world do i single out 1 entry in the txt file and then delete or edit? Perhaps its something i have to get in flash... beats me.... Im just not all incredible when it comes php syntax and commands.
Any helps is much appreciated. Thanks,
Noah