Ok, The fix is just doing something like this...

list($variable, $data) = explode("=", $x);

But now my problem is trying to figure out how to update that data with <form> post ect...

So the main page would get

MaxUser=32

It would read that info and put it in to a form field, which I have.

Now I gotta get it to take and make it so that a new value can be put in that field and updated back in to the text file. I have searched all over google for about 4 hrs looking for something like this but no go, any help would be appricated.


----- Original Message ----- From: "Dwight Altman" <[EMAIL PROTECTED]>
To: "'Rob W.'" <[EMAIL PROTECTED]>; <php-db@lists.php.net>
Sent: Tuesday, March 14, 2006 9:13 AM
Subject: RE: [PHP-DB] Text file (rw) question...


How about posting your solution as well? Maybe someone will find it useful.

-----Original Message-----
From: Rob W. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 2:07 AM
To: php-db@lists.php.net
Subject: Re: [PHP-DB] Text file (rw) question...

Nevermind. I figured it out.


----- Original Message ----- From: "Rob W." <[EMAIL PROTECTED]>
To: <php-db@lists.php.net>
Sent: Tuesday, March 14, 2006 1:45 AM
Subject: [PHP-DB] Text file (rw) question...


I'm trying to figure out how to read specific data from a text file that
is already written. Example

MaxUser=3D32
PortBase=3D8000

I want to be able to have php read them specific pieces of info so I can
put them in to forms and update them via php.
Any help would be appreciated.

--

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to