[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

Re: [PHP-WIN] fwrite error (noobie I am)

2003-07-06 Thread Ron Stephenson
You ARE the man! That was it! Thank you very much! I new it was something simple like that, just didn't know where to look. I am forever in your debt. I had gone to many different newsgroups and no one even came close to the solution. I wish there was some way I could repay you. You have saved my s

Re: [PHP-WIN] fwrite error (noobie I am)

2003-07-06 Thread Stephen March
Allright, I got ya :) Open up any folder, let's say My Documents. Then go to the tools menu => Folder Options. From the "view" tab, scroll all the way down, and you should see something like this: http://www.enerds.ca/files/screenshots/simple_filesharing.jpg You must "uncheck" the simple fil

Re: [PHP-WIN] fwrite error (noobie I am)

2003-07-06 Thread Ron Stephenson
That's the part I think I'm missing because when I right click on the file and go to the properties there is no "Security" tab, button or anything. It does have two check boxes one for read only (unchecked) and one for Hidden. This is the Windows Explorer version. In the IIS properties there is a

Re: [PHP-WIN] fwrite error (noobie I am)

2003-07-06 Thread Stephen March
If you right click on the file count.txt, go to properties -> security. Does "everyone" have modify/write permissions to this file? The first error it posts, is that it doesn't have permissions to alter the file.This would also account for it failing to create the stream. ~Steve Ron St

[PHP-WIN] fwrite error (noobie I am)

2003-07-05 Thread Ron Stephenson
I'm trying to learn PHP and I have it loaded on my PC with XP pro and IIS 5.1. I run the following script and receive the error below. //hit_counter1.php $counter_file = "./count.txt"; if(!($fp = fopen($counter_file, "r"))) die ("Cannot open $counter_file."); $counter = (int) fread($fp, 20); fclose

[PHP-WIN] fwrite is adding blank lines

2002-10-10 Thread benjamin delman
attached is a script i wrote to open a file, display it's contents in a textarea, then submit to a different case where the file is re-written. what i notice is that when there is a blank line, after re-writing that blank line gets doubled. so there are now two blank lines where there was one. wh

[PHP-WIN] fwrite

2002-03-29 Thread G-no / |{iller
How would I write to a regular .txt file? Im on Windows Xp with IIS installed along with php. I wana make it so people type info into a form txtbox then the txtbox info be written to the file sn.txt. (i'm also very new to php) // What I have.. (close but not good enough) ""; $fp = fwrite($myfil

Re: [PHP-WIN] fwrite is adding extra text, why? and where is it coming from????

2001-01-22 Thread alain samoun
It seems that you forgot the quotes inside your html statements. Like: print ""; etc... Alain Joey Garcia wrote: > > I an using the fwrite command to show how it works but it is writing extra > data. For example, I have a Form text box that prompts for a new string of > data then on submit it w

[PHP-WIN] fwrite is adding extra text, why? and where is it coming from????

2001-01-22 Thread Joey Garcia
I an using the fwrite command to show how it works but it is writing extra data. For example, I have a Form text box that prompts for a new string of data then on submit it writes this to the text file and for just a test I wrote "this is a test" and I got the text below. I don't understand why?