-
-
Save anonymous/0d209c0a35672a35690c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(); | |
page.open('http://www.cnn.com', function () { | |
page.render('test.png'); | |
phantom.exit(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Proc_Close(Proc_Open("phantomjs test.js &", Array (), $foo)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment