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.

[PHP-DB] Mysql/PHP5 connection error

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

Re: [PHP-DB] Mysql/PHP5 connection error

2006-03-14 Thread chris smith
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/ConnSAFDEM)

RE: [PHP-DB] Mysql/PHP5 connection error

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

Re: [PHP-DB] Mysql/PHP5 connection error

2006-03-14 Thread chris smith
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?

RE: [PHP-DB] Mysql/PHP5 connection error

2006-03-14 Thread Bastien Koert
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: php-db@lists.php.net Subject: RE: [PHP-DB]

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. -

[PHP-DB] RE: Ye old $_SESSION variables :)

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

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

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

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

2006-03-14 Thread Chris
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 form post ect... So the main page would get MaxUser=32 It would read that info and put it in to a form field,

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
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 and

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

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

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

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

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

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

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

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

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

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

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

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

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] Max Size File that can be uploaded

2006-03-14 Thread Nur_Adman
Dear All, I want to give max size file = 4000KB when I am uploading to mySQL. I used this : INPUT type=hidden name=MAX_FILE_SIZE value=4000 But it didn't work. The file that could upload only under 2048KB. Is there anyone could help me? Thanks so much. Regards, Anita

Re: [PHP-DB] Max Size File that can be uploaded

2006-03-14 Thread Chris
[EMAIL PROTECTED] wrote: Dear All, I want to give max size file = 4000KB when I am uploading to mySQL. I used this : INPUT type=hidden name=MAX_FILE_SIZE value=4000 But it didn't work. The file that could upload only under 2048KB. Check a phpinfo page and look for

RE: [PHP-DB] Max Size File that can be uploaded

2006-03-14 Thread Nur_Adman
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: php-db@lists.php.net Subject: Re: [PHP-DB] Max Size File that can be uploaded [EMAIL PROTECTED]