{"action":"created","issue":{"url":"https://api.github.com/repos/jonnnnyw/php-phantomjs/issues/22","labels_url":"https://api.github.com/repos/jonnnnyw/php-phantomjs/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/jonnnnyw/php-phantomjs/issues/22/comments","events_url":"https://api.github.com/repos/jonnnnyw/php-phantomjs/issues/22/events","html_url":"https://github.com/jonnnnyw/php-phantomjs/issues/22","id":40031408,"number":22,"title":"Problems with executing in windows environment","user":{"login":"kenyiu","id":3939605,"avatar_url":"https://avatars.githubusercontent.com/u/3939605?v=3","gravatar_id":"","url":"https://api.github.com/users/kenyiu","html_url":"https://github.com/kenyiu","followers_url":"https://api.github.com/users/kenyiu/followers","following_url":"https://api.github.com/users/kenyiu/following{/other_user}","gists_url":"https://api.github.com/users/kenyiu/gists{/gist_id}","starred_url":"https://api.github.com/users/kenyiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenyiu/subscriptions","organizations_url":"https://api.github.com/users/kenyiu/orgs","repos_url":"https://api.github.com/users/kenyiu/repos","events_url":"https://api.github.com/users/kenyiu/events{/privacy}","received_events_url":"https://api.github.com/users/kenyiu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jonnnnyw/php-phantomjs/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"jonnnnyw","id":5824499,"avatar_url":"https://avatars.githubusercontent.com/u/5824499?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnnnyw","html_url":"https://github.com/jonnnnyw","followers_url":"https://api.github.com/users/jonnnnyw/followers","following_url":"https://api.github.com/users/jonnnnyw/following{/other_user}","gists_url":"https://api.github.com/users/jonnnnyw/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnnnyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnnnyw/subscriptions","organizations_url":"https://api.github.com/users/jonnnnyw/orgs","repos_url":"https://api.github.com/users/jonnnnyw/repos","events_url":"https://api.github.com/users/jonnnnyw/events{/privacy}","received_events_url":"https://api.github.com/users/jonnnnyw/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/jonnnnyw/php-phantomjs/milestones/1","html_url":"https://github.com/jonnnnyw/php-phantomjs/milestones/Version%204","labels_url":"https://api.github.com/repos/jonnnnyw/php-phantomjs/milestones/1/labels","id":982920,"number":1,"title":"Version 4","description":"","creator":{"login":"jonnnnyw","id":5824499,"avatar_url":"https://avatars.githubusercontent.com/u/5824499?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnnnyw","html_url":"https://github.com/jonnnnyw","followers_url":"https://api.github.com/users/jonnnnyw/followers","following_url":"https://api.github.com/users/jonnnnyw/following{/other_user}","gists_url":"https://api.github.com/users/jonnnnyw/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnnnyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnnnyw/subscriptions","organizations_url":"https://api.github.com/users/jonnnnyw/orgs","repos_url":"https://api.github.com/users/jonnnnyw/repos","events_url":"https://api.github.com/users/jonnnnyw/events{/privacy}","received_events_url":"https://api.github.com/users/jonnnnyw/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2015-02-17T14:39:28Z","updated_at":"2015-09-02T17:39:23Z","due_on":null,"closed_at":null},"comments":22,"created_at":"2014-08-12T07:38:56Z","updated_at":"2015-12-08T02:42:54Z","closed_at":null,"body":"Hello,\r\n\r\nI encountered an error when executing my codes in XAMPP (Windows) enviornment, while there was no error at all on my ubuntu.\r\n\r\nThe error was like this: \r\n\r\n```\r\nUncaught exception 'JonnyW\\PhantomJs\\Exception\\ProcedureFailedException' with message 'Error when executing PhantomJs procedure \"default\" - File does not exist or is not executable: \r\n\r\nC:/xampp/htdocs/phantom/bin/phantomloader' in C:\\xampp\\htdocs\\phantom\\vendor\\jonnyw\\php-phantomjs\\src\\JonnyW\\PhantomJs\\Procedure\\Procedure.php:132 Stack trace: #0 \r\n\r\nC:\\xampp\\htdocs\\phantom\\vendor\\jonnyw\\php-phantomjs\\src\\JonnyW\\PhantomJs\\Client.php(171): JonnyW\\PhantomJs\\Procedure\\Procedure->run(Object(JonnyW\\PhantomJs\\Client), Object(JonnyW\\PhantomJs\\Message\\Request), Object(JonnyW\\PhantomJs\\Message\\Response)) #1 \r\n\r\nC:\\xampp\\htdocs\\phantom\\functions_new.php(20): JonnyW\\PhantomJs\\Client->send(Object(JonnyW\\PhantomJs\\Message\\Request), Object(JonnyW\\PhantomJs\\Message\\Response)) #2 C:\\xampp\\htdocs\\phantom\\oneitem_ky.php(174): argos('012/803') #3 {main} thrown in C:\\xampp\\htdocs\\phantom\\vendor\\jonnyw\\php-phantomjs\\src\\JonnyW\\PhantomJs\\Procedure\\Procedure.php on line 132\r\n```\r\n\r\nWhat I did:\r\n1. Used composer to install the dependencies\r\n2. Changed Client.php under vender\\jonnyw\\php-phantomjs\\src\\JonnyW\\PhantomJs line 110, the value of $this->phantomJs = 'C:/xampp/htdocs/phantom/bin/phantomjs.exe';\r\n3. Changed  Client.php under vender\\jonnyw\\php-phantomjs\\src\\JonnyW\\PhantomJs line 111, the value of $this->phantomLoader = 'C:/xampp/htdocs/phantom/bin/phantomloader';\r\n\r\nI also tried changing $this->phantomLoader = 'C:/xampp/htdocs/phantom/bin/phantomloader.bat', but still did not work out.\r\n\r\nAny ideas?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/jonnnnyw/php-phantomjs/issues/comments/162740938","html_url":"https://github.com/jonnnnyw/php-phantomjs/issues/22#issuecomment-162740938","issue_url":"https://api.github.com/repos/jonnnnyw/php-phantomjs/issues/22","id":162740938,"user":{"login":"agungsb","id":5051832,"avatar_url":"https://avatars.githubusercontent.com/u/5051832?v=3","gravatar_id":"","url":"https://api.github.com/users/agungsb","html_url":"https://github.com/agungsb","followers_url":"https://api.github.com/users/agungsb/followers","following_url":"https://api.github.com/users/agungsb/following{/other_user}","gists_url":"https://api.github.com/users/agungsb/gists{/gist_id}","starred_url":"https://api.github.com/users/agungsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agungsb/subscriptions","organizations_url":"https://api.github.com/users/agungsb/orgs","repos_url":"https://api.github.com/users/agungsb/repos","events_url":"https://api.github.com/users/agungsb/events{/privacy}","received_events_url":"https://api.github.com/users/agungsb/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T02:42:54Z","updated_at":"2015-12-08T02:42:54Z","body":"The solution haffoudhi posted seems to work for me too. But, everytime I run the application, the following error appears:\r\n\r\nFatal error: Maximum execution time of 30 seconds exceeded in C:\\xampp\\htdocs\\PhpPhantom\\vendor\\jonnyw\\php-phantomjs\\src\\JonnyW\\PhantomJs\\Procedure\\Procedure.php on line 107\r\n\r\nIf I trace the code, the execution error belongs to:\r\n\r\n$result = stream_get_contents($pipes[1]);\r\n\r\nAny thoughts? Thanks.. :)"}}