Permissions problems for upload through php -


I am trying to store the attachment of email on my server via php's imap_ * function. I want to store the file name ($ c, string) with the filename ($ F) in the sub-directory under the name of the thread id ($ thread). M_attpath is giving a fixed constant signal to the base folder.

  if (! Is_dir (m_attpath. $ Thread)) {mkdir (m_attpath. $ Thread); }; $ Handle = fopen (m_attpath. $ Thread. '/'. $ F, 'w +'); FILIT ($ handle, $ c); Fclose ($ handle);  

But now I'm configuring with permissions to set attachements to go to viewable via a download.

The main folder is m_attpath = 0777 Thread folder 0644 files are also themselves 0644

When I see files through my browser ends as a question mark browser 404 does not display the warning. In a FTP program I can see the size of the attachment. Something is wrong, but what can I not find out, can anyone help me with this?

thanx

If the M_path is a constant the code is incorrect.

should be

$ handle = fopen (m_attpath. $ Thread. '/'. $ F, 'w +');

What do you mean "they end up as a question mark"?


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -