""Sascha Braun | CEO @ BRAUN Networks"" <[EMAIL PROTECTED]> schrieb
im Newsbeitrag news:[EMAIL PROTECTED]
Hi everyone,
I am using the rename function on my local development
system fine. But as soon as I upload the script, the
rename function does not work anymore.
Is there a specific compiler
Well, why not first check for existance of the file then check if its
able to write to the new location, do something like,
if(!file_exists('/my/file/name')) {
echo 'File does not exist';
}
if(!is_writable('/my/new/file/name')) {
echo 'Destination dir is not writable';
}
then finally check if
Hi,
That's what I've done, but I does not say clearly _when_ @rename
should failed. I've read the documentation in the C library for Unix,
and it says that it failed when it can't _add_ an entry to the
directory. What I observe is an empty file...
still weird, I'll look depper into it. (since i've
Look at http://us2.php.net/manual/en/function.rename.php
Mister Jack wrote:
Hi,
I would like to know precisely what rename do in case of error. any
link for that ?
I do a : @rename($old, $new), what happens if I run out of space ? is
the rename just an alias for C function library ?
thanks
--
> rename("document.htm", "testing.htm");
> Warning: Rename failed (Permission denied) in
> C:\Inetpub\WEBS\mysko\uploads\rename.php on line 4
> The directoy has change permissions. What am i donig wrong...?
Change permissions for which user?
In Microsoft, that "Change Permission" in the web-ro
> rename("moo.php", "foo.php");
Also, works cross-platform. In most cases try to find a function that is
part of PHP rather than using the shell, especially if you are interested in
making sure the code works across platforms. There's also most likely a
performance hit when starting a shell
You can also do
rename("moo.php", "foo.php");
provided that both are on the same filsystem.
On Wed, 11 Jul 2001, Alex Black wrote:
> in article [EMAIL PROTECTED], Randy
> Johnson at [EMAIL PROTECTED] wrote on 7/13/01 10:53 AM:
>
> > How do I rename a file on Linux in PHP?
> >
> > Thanks
> >
>
> > How do I rename a file on Linux in PHP?
>
> $err = `mv moo.php foo.php`
Or, to be safe:
http://www.php.net/manual/en/function.rename.php
... `` doesn't work in Safe Mode.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
in article [EMAIL PROTECTED], Randy
Johnson at [EMAIL PROTECTED] wrote on 7/13/01 10:53 AM:
> How do I rename a file on Linux in PHP?
>
> Thanks
>
> Randy
$err = `mv moo.php foo.php`
_a
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
[EMAIL PROTECTED] (Randy Johnson) wrote:
> How do I rename a file on Linux in PHP?
>
you mean using a php function?
php.net/rename
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
10 matches
Mail list logo