aj-techsoul / ELECTRON-4-PHP

An easiest way to use php in electron
MIT License
203 stars 46 forks source link

Nothing is displayed when running the script #1

Closed sbm1990 closed 6 years ago

sbm1990 commented 6 years ago

Hello AJ-Tech i have followed all the steps recommended in these but when i run the script it displayed nothing

aj-techsoul commented 6 years ago

Which OS you are using ?

sbm1990 commented 6 years ago

windows

aj-techsoul commented 6 years ago

Hi @sbm1990 I have updated in my docs that for now it will only run on mac without php installation. but for linux and windows you need to first install php and then it will work. Need people to contribute in this for windows and linux platform

sbm1990 commented 6 years ago

Thanks for the reply it will be great if u provide some help on how to start it on windows platform

aj-techsoul commented 6 years ago

Even i want to make a window platform working. Because right now i am using PHPDesktop for Window platform. If however i can install php in windows then my code will work in there. Let me check doing this, last time i tried but no success.

aj-techsoul commented 6 years ago

I was working on putting this feature in windows, and guess what... its working... :laughing: now i am making a package in npm so that you could use php 7.2.2 (latest) successphpworking Give me some time for add feature officially.

sbm1990 commented 6 years ago

I am eagerly waiting for this feature

aj-techsoul commented 6 years ago

https://github.com/AJ-TechSoul/ELECTRON-4-PHP updated for windows also. Please use and let me know. Soon i am going to write a proper code to support Linux, Mac and Windows all together at once. This is a temporary fix just for you brother. :)

sbm1990 commented 6 years ago

Hello AJTech Thanks for this quick response .I have used latest code but the results are same it is still showing blank page.....

aj-techsoul commented 6 years ago

Try to Restart your cmd, I am unable to make app restart program due to some security issue.

doublevie commented 6 years ago

Nothing is displayed in packaged app php wont start

aj-techsoul commented 6 years ago

@doublevie which OS you are in

doublevie commented 6 years ago

windows found it , i must have php added in environment variables , it work now without do that with this code const server = new PHPServer({ php: "php/php.exe", });