There are basically two ways to setup your ownership and permissions. Either you give yourself ownership or you make the webserver the owner of all files.
Assuming www-data
is your webserver user.
In your command-line run the following commands:
brew doctor
brew update
<?php | |
define('DS', DIRECTORY_SEPARATOR); // | |
// privileges/verifying_session/check_session | |
// /opt/lamp/htDocs/folder name | |
//define('Save_Path', __DIR__ . DS . '../session'); | |
define('Save_Path',dirname(realpath(__FILE__)).DS.'../ee399e457eae2ef36adabc2ad78d8064'); | |
class Session extends SessionHandler | |
{ |
<?php | |
/** | |
* Create a web friendly URL slug from a string. | |
* | |
* Although supported, transliteration is discouraged because | |
* 1) most web browsers support UTF-8 characters in URLs | |
* 2) transliteration causes a loss of information | |
* | |
* |
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
This solution fixes the error caused by trying to run npm update npm -g
. Once you're finished, you also won't need to use sudo
to install npm modules globally.
Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.
const functions = require('firebase-functions'); | |
const gcs = require('@google-cloud/storage')(); | |
const spawn = require('child-process-promise').spawn; | |
const mkdirp = require('mkdirp-promise'); | |
const path = require('path'); | |
const os = require('os'); | |
const fs = require('fs'); | |
// // Create and Deploy Your First Cloud Functions | |
exports.optimizeImages= functions.storage.object().onFinalize((data) => { |
{"lastUpload":"2019-07-24T09:33:26.834Z","extensionVersion":"v3.4.1"} |