Monthly Archives: February 2016

How to handle Alerts (Popups) with PHP Selenium WebDriver

Below is an example of how to handle an alert box popping up after an jQuery ajax call return when using selenium with the Facebook PHP WebDriver

Advertisements

Run #PHP7 on #AWS #EC2 cloud

Just found this amazing shell script to quickly get PHP7 running on AWS. Make sure you launch an instance of Amazon Linux AMI 2015.09.1 (HVM), SSD Volume Type – ami-bff32ccc .  https://gist.github.com/phpdave/c6a5bb73b5e29cd7cfba

Basically you just download the shell script from gist.github.com, give it execute permissions and then run it

wget https://gist.githubusercontent.com/phpdave/c6a5bb73b5e29cd7cfba/raw/c706ff60e3ae48b21675ba53dbe59745fde9638c/InitAmazonLinux_201509_for_PHP7.sh
chmod 700 InitAmazonLinux_201509_for_PHP7.sh
-- Execute the script
./InitAmazonLinux_201509_for_PHP7.sh

Shell script