Jump to content

Absolute path does not work


hvle

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!!!!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.