Re: Creating Files Windows vs Unix

From: Date: Thu, 15 Mar 2001 07:26:28 +0000
Subject: Re: Creating Files Windows vs Unix
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-43984@lists.php.net to get a copy of this message
On Thu, 15 Mar 2001 17:41, Andrew V. Romero wrote: > I believe it is a *nix server. I haven't looked into directory > permissions before but that is an area I will definately look into. If > this was a problem with the directory permissions, would the problem > still disappear if a file with the correct name was already in the > directory? > -Thanks > Andrew V. Romero > To reply personally, remove all numbers from address. > ICQ# 54080914 > If the permissions on the file were right, I think yes. To point out another possible problem $answerFile = "$questionFileName-A.txt"; Then I go along and open this later with $wa=fopen("$answerFile","a"); Actually the fopen attempts to create the file if it doesn't exist. But I'd be worried about the $ in your filename? If php tried to parse that as a variable you may get unexpected results? I think that $answerFile might contain the value '.txt' Try echoing it and see.... [I'm off home now.] -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#43984) next »