Jump to content

Archived

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

hvle

Absolute path does not work

Recommended Posts

I've encounted a strange behaviour:

my script is in this path:
/home/user/public_html/admin/admin_func.php
which change mod a file name /home/user/public_html/au/adelaide/index_en.html to 0777

when 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!!!!

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.