Preparing the upload folder


show more Preparing the upload folder provides you with in-depth training on Developer. Taught by David Powers as part of the Uploading Files Securely with PHP show less
please wait ...

Preparing the upload folder

When creating the upload folder or directory on your remote server, there are a couple of considerations you need to bear in mind. First, you need to set the right permissions. The web server needs to be able to write to the folder. Most PHP sites are hosted on Linux servers. From the security viewpoint, permissions should be as restrictive as possible. Start by trying seven, five, five. Seven gives the owner read, write and execute permissions.

Setting the other two values to five prevents anyone else from writing to the folder. But they can read files and access sub folders. In most cases this should be sufficient. However if that doesn't work, try seven, seven, five. This gives the group read, write and execute permissions, but prevents global users from writing. If you're on a Windows server, check with the Server Administrator. The other important consideration is where you put the folder. If you put it inside the server root, uploaded files will be immediately accessible to anyone.

If the upl...

Preparing the upload folder
Video duration: 3m 18s 2h 50m Intermediate

Viewers:

Preparing the upload folder provides you with in-depth training on Developer. Taught by David Powers as part of the Uploading Files Securely with PHP

Subject:
Developer
Software:
PHP
Author:
please wait ...