murrayw

Experience

10,420

0 Best Reply Awards

  • Member Since 2 Years Ago
  • 101 Lessons Completed
  • 6 Favorites

9th August, 2016

murrayw left a reply on Saving An Intervention Image Instance Into Amazon S3 • 2 years ago

Thankyou, this saved me so much!

It's very tempting to assume there is an issue with AWS permissions instead of the image format being incorrect.

7th July, 2016

murrayw left a reply on Using Php70-xdebug With Valet • 2 years ago

Use phpinfo() to verify php version (Mine is: 7.0.6). Then install the correct xdebug for your php version. On MacOSX 10.11.5 using homebrew you can search for the correct xdebug using command:

$ brew search xdebug

This returns the most suitable:'homebrew/php/php70-xdebug

Install xdebug using homebrew:

$ brew install php70-xdebug

To select this php version in your IDE (Under PHPStorm in interpreter section) simply add this path into 'PHP executable':

/usr/local/Cellar/php70/7.0.6/bin/php

Then verify which php version and the php.ini path your project is using with:

$ php --ini

Ance you have found the php.ini file (mine is /usr/local/etc/php/7.0/php.ini) add the following lines:

zend_extension=/usr/local/Cellar/php70-xdebug/2.4.0/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9001
xdebug.remote_autostart=1
xdebug.idekey=PHPSTORM

Change the zend_extension if your debug is not installed there.

Also note the port is 9001 and not the default 9000, this is because valet and vagrant sue port 9000. You will need to inform your IDE you have changed the port, you can do this in PHPStorm under 'Preferences -> PHP -> Debug' then change Xdebug Port number to 9001. Then restart valet:

$ valet restart
Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.