<?php
$url = ‘http://www.example.com/’;
exec(‘wget -mk -w 1 '. $url);
?>
References:
http://fosswire.com/post/2008/04/create-a-mirror-of-a-website-with-wget/
http://stackoverflow.com/questions/12766811/mirror-a-site-using-php
Answers for everything
<?php
$url = ‘http://www.example.com/’;
exec(‘wget -mk -w 1 '. $url);
?>
References:
http://fosswire.com/post/2008/04/create-a-mirror-of-a-website-with-wget/
http://stackoverflow.com/questions/12766811/mirror-a-site-using-php
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
Main project page
http://phantomjs.org/download.html
Setup your environment
Setup your script
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