RE: [PHP-WIN] Re: fwrite()

2005-11-08 Thread JC Botha
I greatly appreciate your help! Thank you so much. if ($_POST[update] == "update") { //write info to file $file_data = "editdate#".date('l d_m_Y')."\n"; $file_data .= "createdate#$_POST[createdate]\n"; $file_data .= "title#$_POST[title]\n"; $file_data .= "description#$_POST[description]\n";

Re: [PHP-WIN] Re: fwrite()

2005-11-08 Thread Kevin Smith
Submit you're code to the list and let's see if we can help you. JC Botha wrote: Dear Rosty Thanks for your input, but it does not change the situation at all! :( Please let me know if there is something else that you think about. Greetings JC -Original Message- From: Rosty Kere

RE: [PHP-WIN] Re: fwrite()

2005-11-08 Thread JC Botha
Dear Rosty Thanks for your input, but it does not change the situation at all! :( Please let me know if there is something else that you think about. Greetings JC -Original Message- From: Rosty Kerei [mailto:[EMAIL PROTECTED] Sent: 08 November 2005 01:32 PM To: php-windows@lists.php.ne

[PHP-WIN] Question--How to handle security issue when uploading file

2005-11-08 Thread Xiaozhi Liu
Hi All, I have a question on uploading file. My environment is Windows XP with SP2, IIS5.1, PHP5.0.4. I am trying to upload files. But there are always this error messamges: Warning: move_uploaded_file(license.txt) [function.move-uploaded-file]: failed to open stream: Permission denied in C:\I

[PHP-WIN] Re: fwrite()

2005-11-08 Thread Rosty Kerei
Maybe you need to replace "\n" to "\r\n"? Like - $_POST['textbox'] = str_replace("\n", "\r\n", $_POST['textbox']); Sincerely, Rosty Kerei [EMAIL PROTECTED] ""JC Botha"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear Users, thanks for those that helped me last time! I got it

[PHP-WIN] Multiple php.ini files with IIS5 under Win2000

2005-11-08 Thread Ben Lobo
Is there a way of getting php5 with IIS5 on Win2000 to use different php.ini files for each site? I thought it was possible to just put a version if php.ini into the root of the site and php would use that version but this doesn't seem to work (I'm using php5isapi.dll). The problem I'm trying to

[PHP-WIN] Multiple php.ini files with IIS5 under Win2000

2005-11-08 Thread Ben Lobo
Is there a way of getting php5 with IIS5 on Win2000 to use different php.ini files for each site? I thought it was possible to just put a version if php.ini into the root of the site and php would use that version but this doesn't seem to work (I'm using php5isapi.dll). The problem I'm trying to

[PHP-WIN] fwrite()

2005-11-08 Thread JC Botha
Dear Users, thanks for those that helped me last time! I got it working. At the moment I'm stuck with the fwrite() function. If I use the $_POST to get the data out of a textbox into a var, and write it to a txt file I get the following problem. The very first encounter it makes with a "\n" it