Essential Articles on Remote PHP Debugging with PHPStorm and Xdebug

Steps:

 

Enable remote xdebug in php.ini 

you will add a line in php.ini

xdebug.remote_enable=1

Test your connection, if it doesn’t work with localhost, try you local network IP address as it depends to which network adapter PHPStorm is using for the debugging purposes.

 

Mac-Pro:~ mac$ telnet localhost 9000

Trying ::1…

telnet: connect to address ::1: Connection refused

Trying 127.0.0.1…

Connected to localhost.

Escape character is ‘^]’.

^\^]

telnet> exit

?Invalid command

telnet> quit

Connection closed.

Mac-Pro:~ mac$ telnet 192.168.1.8 9000

Trying 192.168.1.8…

Connected to 192.168.1.8.

Escape character is ‘^]’.

 

 

http://randyfay.com/content/remote-drupalphp-debugging-xdebug-and-phpstorm

http://randyfay.com/content/remote-command-line-debugging-phpstorm-phpdrupal-including-drush

Screenshot of website using php on linux using PhantomJS WebKit

Main project page

http://phantomjs.org/download.html

 

 

Setup your environment

 

Setup phantomjs on Amazon EC2 instance

 

Setup your script

 

Capture webpage screenshot using PHP and Phantomjs

 

Additional reading on the PhantomJS

 

http://pielmeier.blogspot.ca/2011/02/headless-html-page-rendering-with.html

 

http://stackoverflow.com/questions/3342966/taking-website-screenshot-server-side-on-a-linux-rented-server-free