Jump to content

Archived

This topic is now archived and is closed to further replies.

trillion

should be simple

Recommended Posts

This should be easy but I am stumped!

How do I rename a directory?

[code]<?php
rename ('dirname1','dirname2');
?>[/code]

gets permissions denied and chmod is 0777

Share this post


Link to post
Share on other sites
ur using the right php syntax so make sure its the right path and if it is then its something with the server ur on

Share this post


Link to post
Share on other sites
Double check the chmod, and try to supply full file paths rather then local ones. For instance a full file path for me would be:

[quote]/home/alias/public_html/test[/quote]

If that doesn't work I would look at the specifics of the directory, or if this is on a remote server talk to your host.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.