PhotoPlog

PhotoPlog (http://www.photoplog.com/forum/index.php)
-   "How Do I..." Questions (http://www.photoplog.com/forum/forumdisplay.php?f=7)
-   -   How to: Automatically CHMOD uploaded files. (http://www.photoplog.com/forum/showthread.php?t=140)

Zacarias 03-14-2006 10:56 PM

How to: Automatically CHMOD uploaded files.
 
I figured out a way to automatically CHMOD uploaded files.

My host's default setting is set to 600. If you're getting 403 errors while looking at your images, and you don't feel like making a custom php.ini file, just do this simple edit.

Open upload.php in your photoplog folder.

Find:
Quote:

$photoplog_file_check = @getimagesize($photoplog_file_location);
Under it, add:
Quote:

@chmod($photoplog_file_location,0755);
And it should work. It worked for me. ^_^


All times are GMT. The time now is 08:56 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.