Adding Adobe files to a wordpress site [closed]

Allowing file types outside of WP’s defaults exposes your site to some security risks, and some hosts don’t allow certain filetypes. If your host allows these filetypes, you can use the following function in a plugin or a child theme: function wpse_file_uploads($mime_types){ // photoshop $mime_types[‘psd’] = ‘image/vnd.adobe.photoshop’; // illustrator $mime_types[‘ai’] = ‘application/postscript’; // indesign $mime_types[‘indd’] … Read more

Is fopen() forbidden in WP?

File system access is tricky thing between different possible server configurations. If you need to implement it reliably in WP you should look into its API for such. See Using the WP_Filesystem.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)