hvle Posted May 9, 2006 Share Posted May 9, 2006 I've encounted a strange behaviour:my script is in this path:/home/user/public_html/admin/admin_func.phpwhich change mod a file name /home/user/public_html/au/adelaide/index_en.html to 0777when I used a relative path like below:ftp_site($ftp_conn, "CHMOD 0777 ../au/adelaide/index_en.html");this works fine.however if I have:ftp_site($ftp_conn, "CHMOD 0777 /home/user/public_html/au/adelaide/index_en.html");I got the error below----------------Warning: ftp_site(): Could not change perms on /home/user/public_html/au/adelaide/index_en.html: No such file or directory in /home/user/public_html/admin/admin_func.php on line 12----------------Please help!!!! Link to comment https://forums.phpfreaks.com/topic/9369-absolute-path-does-not-work/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.