Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
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

RE: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Dwight Altman
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

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
[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

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Chris
-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

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
That works, but it just throws it in to a big loop and fills up the file, any suggestions? - Original Message - From: Chris [EMAIL PROTECTED] To: Rob W. [EMAIL PROTECTED] Cc: php-db@lists.php.net Sent: Tuesday, March 14, 2006 5:54 PM Subject: Re: [PHP-DB] Text file (rw) question

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Peter Beckman
and fills up the file, any suggestions? - Original Message - From: Chris [EMAIL PROTECTED] To: Rob W. [EMAIL PROTECTED] Cc: php-db@lists.php.net Sent: Tuesday, March 14, 2006 5:54 PM Subject: Re: [PHP-DB] Text file (rw) question... Rob W. wrote: Ok, The fix is just doing something like

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Chris
to a file. - Original Message - From: Chris [EMAIL PROTECTED] To: Rob W. [EMAIL PROTECTED] Cc: php-db@lists.php.net Sent: Tuesday, March 14, 2006 5:54 PM Subject: Re: [PHP-DB] Text file (rw) question... Rob W. wrote: Ok, The fix is just doing something like this... list($variable, $data

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
it updates that line of code. - Original Message - From: Chris [EMAIL PROTECTED] To: Rob W. [EMAIL PROTECTED] Cc: php-db@lists.php.net Sent: Tuesday, March 14, 2006 6:23 PM Subject: Re: [PHP-DB] Text file (rw) question... Rob W. wrote: That works, but it just throws it in to a big

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Chris
it is only numbers, whatever data you actually want to keep in it). - Original Message - From: Chris [EMAIL PROTECTED] To: Rob W. [EMAIL PROTECTED] Cc: php-db@lists.php.net Sent: Tuesday, March 14, 2006 6:23 PM Subject: Re: [PHP-DB] Text file (rw) question... Rob W. wrote: That works

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
. [EMAIL PROTECTED] Cc: php-db@lists.php.net Sent: Tuesday, March 14, 2006 6:42 PM Subject: Re: [PHP-DB] Text file (rw) question... Rob W. wrote: Yeah, It's exactally what I needed, but I just want it to replace that one value that is sent via $_POST. What i'm trying to do is just make a web

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Chris
making sure it is only numbers, whatever data you actually want to keep in it). - Original Message - From: Chris [EMAIL PROTECTED] To: Rob W. [EMAIL PROTECTED] Cc: php-db@lists.php.net Sent: Tuesday, March 14, 2006 6:23 PM Subject: Re: [PHP-DB] Text file (rw) question... Rob W. wrote

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
: php-db@lists.php.net Sent: Tuesday, March 14, 2006 7:02 PM Subject: Re: [PHP-DB] Text file (rw) question... Rob W. wrote: Yeah, but will that just replace the data that is present already there? I dont wanna have duplicate entries in there or i'm affraid it wont read it. The origional code you

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Chris
Rob W. wrote: So how do I make it so it just set's the variable's that are sent in the $_POST because i wanna write it so that if the value isnt changed, it wont send the $_POST and wont update the config file.. You can't stop the post because your browser does that not php (well you could

[PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
It's all fixed and works. If anybody is wondering how this turned out, here's the begining of the results. index.php ?php if (!($f=fopen(sc_serv.conf,r))) exit(Unable to open file.); while (!feof($f)) { $x=fgets($f, 100); list($variable, $data) = explode(=, $x); echo form

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Chris
Rob W. wrote: It's all fixed and works. If anybody is wondering how this turned out, here's the begining of the results. index.php ?php if (!($f=fopen(sc_serv.conf,r))) exit(Unable to open file.); while (!feof($f)) { $x=fgets($f, 100); list($variable, $data) = explode(=, $x);

Re: [PHP-DB] Text file (rw) question...

2006-03-14 Thread Rob W.
Ah yes, that's true. I didnt realize that. Thanks for pointing that out. - Original Message - From: Chris [EMAIL PROTECTED] To: Rob W. [EMAIL PROTECTED] Cc: php-db@lists.php.net Sent: Tuesday, March 14, 2006 9:02 PM Subject: Re: [PHP-DB] Text file (rw) question... Rob W. wrote

[PHP-DB] Text file (rw) question...

2006-03-13 Thread Rob W.
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.