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
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
[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
-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
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
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
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
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
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
. [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
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
: 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
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
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
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);
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
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.
17 matches
Mail list logo