Nevermind. I figured it out.
- Original Message -
From: "Rob W." <[EMAIL PROTECTED]>
To:
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=3
Hello,
I hope somebody can assist. I am using dreamweaver 8, Mysql, PHP5 for a
simple we application. After using the dreamweaver wizard to make a
connection, then created a recordset. Trouble starts when I use
require_once(connections/ConnSAFDEM) to link to the database connection
file. I get th
On 3/14/06, Eustace <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I hope somebody can assist. I am using dreamweaver 8, Mysql, PHP5 for a
> simple we application. After using the dreamweaver wizard to make a
> connection, then created a recordset. Trouble starts when I use
> require_once(connections/Conn
Thanks. That's the mind boggling part, the file does exist, correct case,
correct path! Dreamweaver does ship the files automatically to the testing
server..and I checked to make sure!
-Original Message-
From: chris smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 12:04 PM
T
On 3/14/06, Eustace <[EMAIL PROTECTED]> wrote:
> Thanks. That's the mind boggling part, the file does exist, correct case,
> correct path! Dreamweaver does ship the files automatically to the testing
> server..and I checked to make sure!
Is this the full path to the file?
c:\Inetpub\wwwroot\safde
Never trust DW to do the testing for you. I never user DWs built in server
stuff to test...create it and then test it thru the browser like it would
actually operate.
Bastien
From: "Eustace" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To:
Subject: RE: [PHP-DB] Mysql/PHP5 connection er
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: [email protected]
Subject: Re: [PHP-DB] Text file (rw) question...
Nevermind. I figured it out.
- Orig
Try to make a small new script that only contains a form and a session.
Then try a from with the same field names as the variable names.
name='test' => $_SESSION['test'].
When the session data is overwritten by the second try, registerglobals is
switchd on.
The thing you can do then is to rename yo
> Try to make a small new script that only contains a form and a session.
> Then try a from with the same field names as the variable names.
> name='test' => $_SESSION['test'].
> When the session data is overwritten by the second try, registerglobals is
> switchd on.
> The thing you can do then is
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
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
Rob W. wrote:
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
post ect...
So the main page would get
MaxUser=32
It would read that info and put it in to a form field, which
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:
Sent: Tuesday, March 14, 2006 5:54 PM
Subject: Re: [PHP-DB] Text file (rw) question...
Rob W. wrot
"pear install Config"
Now you can load a config file like that with a single command, load it
into an array, modify values, then write it back.
http://pear.php.net/package/Config
It is fantastic.
Beckman
On Tue, 14 Mar 2006, Rob W. wrote:
That works, but it just throws it in to a big loop an
Rob W. wrote:
That works, but it just throws it in to a big loop and fills up the
file, any suggestions?
What do you want it to do?
We have absolutely no idea exactly what you're trying to achieve - that
was just a guess because you're posting a form and want the new values
written to a file
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 intigration to edit shoutcast .conf
files. I have everything else execpt for now like I was saying, that code
worked, I just want it to halt after
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 intigration to edit shoutcast
.conf files. I have everything else execpt for now like I was saying,
that code worked, I just want it
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 gave worked but it just ran in a big loop.
- Original Message -
From: "Chris" <[EMAIL PROTECTED]>
To: "Rob W."
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 gave worked but it just ran in a big loop.
That particular example will replace the whole file.
If you onl
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..
- Original Message -
From: "Chris" <[EMAIL PROTECTED]>
To: "Rob W." <[EMAIL PROTECTED]
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 st
It's all fixed and works. If anybody is wondering how this turned out, here's
the begining of the results.
index.php
";
if ($variable == "MaxUser") {
echo "Max Users: ";
}
if ($variable == "Password") {
echo "Password: ";
}
// echo "$variable $data";
}
fclose($f);
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
";
if ($variable == "MaxUser") {
echo "Max Users: ";
}
if ($variable == "Password") {
echo "Password: ";
}
// echo "$variable $data";
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:
Sent: Tuesday, March 14, 2006 9:02 PM
Subject: Re: [PHP-DB] Text file (rw) question...
Rob W. wrote:
It's all fixed a
Dear All,
I want to give max size file = 4000KB when I am uploading to mySQL.
I used this :
But it didn't work. The file that could upload only under 2048KB.
Is there anyone could help me?
Thanks so much.
Regards,
Anita
[EMAIL PROTECTED] wrote:
Dear All,
I want to give max size file = 4000KB when I am uploading to mySQL.
I used this :
But it didn't work. The file that could upload only under 2048KB.
Check a phpinfo page and look for upload_max_filesize
PHP is probably limiting it to 2M.
Chris,
Its solved my problem. Thank you so much.
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 15, 2006 12:12 PM
To: Adman, Nur anita
Cc: [email protected]
Subject: Re: [PHP-DB] Max Size File that can be uploaded
[EMAIL PROTECTED] wrot
26 matches
Mail list logo