Permission

trying to set permission to 0777
but the smartftp set the 777 i see it in log
how can i do it

and the script won't work until the premission is 0777

0777 and 777 are the same. The leading "0" (zero) just means the number is in octal notation.

0777 and 777 are the same. The leading "0" (zero) just means the number is in octal notation.
i know but the scrip will not work with 777 i bekame "Need to set permissions to 0777 in this directory." evry time that i'm trying to exe the script

How are you executing that script on the server? Via SSH?

Moreover, there are several thing to check. E.g. make SmartFTP display the "Permissions" column and see if it displays "-rwxrwxrwx" for that script file.