Starting phantomjs server from php and waiting for it's response Starting phantomjs server from php and waiting for it's response curl curl

Starting phantomjs server from php and waiting for it's response


You have several issues:

  1. phantomjs is started in the foreground, which means your php script stops/sleeps until phantomjs stops. Either start the phantomjs service, or run it in the background. See " php execute a background process " for an HowTo.
  2. The web server may probably not access the "graphical part" of your operating system, which means it cannot interact with your desktop. This is why the icon does not appear, but phantomjs should still start.