FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Having trouble writing/copying/renaming file to sub-directory
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Having trouble writing/copying/renaming file to sub-directory [message #170981 is a reply to message #170974] Mon, 13 December 2010 19:03 Go to previous messageGo to previous message
seeWebInstead is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to generate cryptographically-secure random big-integers?
Next Topic: PHP Guestbook list on PHPKode.com
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 11:29:59 GMT 2024

Total time taken to generate the page: 0.04586 seconds