Jump to content

Recommended Posts

Posted

Hello,

 

I have a php script that creates some files. On my former host, the script could create files (using fopen fwrite commands) just by giving write permissions to the "owener". Here it seems that the php can not write files unless I give write persions to "Public". (CHMOD 777)

 

Is it secure to give write persions to public?

 

A side effect of this is that now I can not delete the files created by the php script using FTP (i get permission denied) What should I do?

 

Thanks.

Posted

You will have to open a help desk ticket to support (link above) to have those files removed. I don't know how you would create files with PHP that would make you the owner of the file. Maybe someone else can help with that.

 

Welcome to the forum and family, fs5! :whip:

Posted
You will have to open a help desk ticket to support (link above) to have those files removed.

 

Hello!

 

The problem is that I might need to do this very often. I don't think support would be very happy deleting my files several times every day :whip:

 

Isn't there a better way to do this?

 

Thanks.

Posted
Since a php script owns the file,

have you tried making another php script to remove the files?

That definately works. I've done that plenty. Alternatively, you could make a php script to change the permissions on the file to 777, then delete/edit the file with FTP.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...