Re: Having trouble writing/copying/renaming file to sub-directory [message #170981 is a reply to message #170974] |
Mon, 13 December 2010 19:03 |
seeWebInstead
Messages: 14 Registered: October 2010
Karma:
|
Junior Member |
|
|
> From: Jerry Stuckle <jstuck...@attglobal.net>
(regarding my PHP/MySQL hosting account on blackapplehost.com)
> You need to learn about Linux administration and permissions.
From the information I posted, i.e. how my directory looks via FTP,
and how my PHP scripts run, how can you tell it's Linux, as opposed
to FreeBSD or Windows?? I suppose the fact that the directory
separator is / instead of \ eliminates Windows? But otherwise, how
can you pin down which version of *nix it's running??
By the way, when I first had this problem, I suspected the system
was running Windows, and thus the directory separator wasn't / but
was \, so I changed the directory separator in my filename spec to
be \, and it successfully wrote the file!! But then when I used FTP
to see if it was written in the subdirectory, nothing was there,
the sub-directory was still empty. But then I noticed the main
directory contained a file called "ReqSOAP\1292127412.58842300.txt",
but when I tried to GET that file via FTP (to see if PHP had
written the correct data into it) it complained it had a prohibited
name. FTP couldn't rename it either, because of the prohibited
filename. Next I tried mget *292*.txt, and it recognized the file
and offered to get it, but when I said 'y' it said the name was
prohibited. I finally used a PHP script to rename the file to have
a more normal filename, at which point FTP could GET it and then
delete it.
|
|
|