Re: Edit a file from a PHP form
| From: | Angie Tollerson | Date: | Wed, 02 May 2001 14:46:31 +0000 |
| Subject: | Re: Edit a file from a PHP form | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-9056@lists.php.net to get a copy of this message | ||
Hmm, Allen, this may be overwhelming , but what you are trying to do would be ideal with XML files
and manipulating them with PHP and XSL style sheets. I am doing the exact same thing you are with
these technologies. Your XML page looks just like a text file but with tags, like this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<PROJECT_PAGES xmlns="whatever">
<PROJECT>
<PROJECT_NAME>C Test Name</PROJECT_NAME>
<DIVISION>Colorado</DIVISION>
<LETTER>D</LETTER>
<ADDRESS>Address Test</ADDRESS>
<CITY>City Test</CITY>
<STATE>State Test</STATE>
<ZIP>Zip Test</ZIP>
<PHONE>Phone Test</PHONE>
<FAX>Fax Test</FAX>
<TEAM>Name One</TEAM>
</PROJECT>
With multiple entries, then using PHP and XSL style sheets you can grab individual tags and edit
them, you can delete a whole "project" or "employee" in your case, add them,
SORT them in alphabetical order, numberical..the possibilities are endless. PHP already has a XML
and XSL parser built in depending on your server op system you may need to install the dll's
for them or compile them. But it is very smooth and fast and not too hard to learn. If you know
PHP you are half way there. Hope I haven't confused the issue more. But trying to use PHP get
lines and substrings and such in a plain .csv is really inefficient and LIMITED.
Tinuviel
>>> "Allen May" <umayxa3@donet.com> 05/02/01 09:28AM >>>
I would like to edit a list from a PHP form.
Can someone point me to a good tutorial??
I have walked-through a tutorial that showed me how to successfully pull the
contents of text file and display the whole contents. I want to view the
contents and then edit a specific line of in a list.
So, if I have list of employees and their telephone numbers, I'd like to be
able to search the contents and display the employees phone number then
allow me to edit the phone number and save it back to the list.
I know I can do this with MySQL but I need to keep the source data in a text
file.
Thanks for any suggestions.
-Allen
umayxa3@donet.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net