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 #170983 is a reply to message #170981] Mon, 13 December 2010 19:14 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 12/13/2010 2:03 PM, Robert Maas, http://tinyurl.com/uh3t wrote:
>> 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??
>

FreeBSD is a version of Linux. And Windows does not have the same
permissions. And it doesn't matter which version of Linux you are
running - your problem is the same on all of them.

But then I understand various operating systems - so it was quite obvious.

> 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.

Shows how little you actually know.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Sun Nov 24 21:48:48 GMT 2024

Total time taken to generate the page: 0.04441 seconds