Re: [Fwd: [PHP-GENERAL] copy()]
| From: | David Robley | Date: | Mon, 26 Jun 2000 07:38:40 +0000 |
| Subject: | Re: [Fwd: [PHP-GENERAL] copy()] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3082@lists.php.net to get a copy of this message | ||
On 26 Jun, Tijmen Hennink wrote:
> David Robley wrote:
>
>> On 25 Jun, Tijmen Hennink wrote:
>> > Tijmen Hennink wrote:
>> >
>> >> Jonas Jochum wrote:
>> >>
>> >> > -----BEGIN PGP SIGNED MESSAGE-----
>> >> > Hash: SHA1
>> >> >
>> >> > Am 25.06.00 um 16:17 hat Tijmen Hennink geschrieben:
>> >> >
>> >> > TH>The complete path is /www/htdocs/test/dirname version 2/lwq.html
>> >> > TH>PHP4 seems to refuse this destination with the following error.
>> >> > TH>Unable to create '/www/htdocs/test/dirname version
>> >> > TH>2/lwq.html': No such
>> >> > TH>file or directory in Object.php3 on line 517
>> >> >
>> >> > you might want to try "/www/htdocs/test/dirname\ version\
>> >> > 2/lwq.html"
>> >> >
>> >> > - --
>> >> > MfG,
>> >> > Jonas Jochum
>> >> >
>> >> > commandline net services
>> >> > - -------------------------------------------------------------------------
>> >> > tel: 07223-911794 | cmd:~ # Systemadministration, Netzwerkverwaltung
>> >> > fax: 07223-911795 | cmd:~ # Einrichtung von *BSD/Linux-Servern
>> >> > d2 : 0173-5712481 | cmd:~ # Datenbank/Internetprogrammierung
>> >> > jj@commandline.de | cmd:~ # Webdesign
>> >> > www.commandline.de |
>> >>
>> >> I've tried it but no result.
>> >> It's very strange because when I cd to that dirname you can see the syntax
>> >> you've subscribed above but PHP is still complaining that the file can't
>> >> be
>> >> copied.
>> >>
>> >> Tijmen
>>
>> You also need to make sure that the user that your web server runs as
>> (usually nobody) has the appropriate permissions in the directory tree
>> where the copy is being made.
>>
>> Cheers
>> --
>> 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
>
> Hi,
>
> the only problem is the weird directory name, all the permissions are working well
> cause when I'm copying a file in a directory in the same root with the same
> permissions
> the system doesn't complain.
>
> Tijmen
Then perhaps you could check the filename and replace any nasty
characters in it with innocuous underscores, or something else that your
operating systme can cope with. Whoever made the decision to allow weird
characters in Windows long file names should be punished mightily.
Cheers
--
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