1
Hey guys I made an extension for Chrome only with a basic html and it worked super good.
The problem is when I changed the main file from . html to . php in order to put my logic that I need php. Could someone tell me how to run the php script? I thought maybe read it by javascript, but I don’t know if it works.
For PHP to run it will need to be processed by a server that has the interpreter properly installed and configured. As a browser extension you will not be able to use Javascript only. Depending on what you need to do, you may need the extension to send the data via HTTP to a server running PHP and responding with the desired data.
– Woss
Thank you so much, you didn’t call me on this hahaha that had no way to interpret. I’ve been taking a look that gives to do with python and convert to javascript you think a good ?
– Gabriella Selbach
You can implement, in the html extension, do an iframe for your site with the page in php, or do an Ajax in HTML for a page in PHP that passes the information you need to show to the user, there are n solutions for this :)
– JassRiver
here ta this would be for my tcc I’m developing ai extension idea is to read a google Docs with api and interpret this text with the google api of pln.
– Gabriella Selbach
Gdocs Supports JS: https://developers.google.com/docs/api/quickstart/js see if this can help you!
– JassRiver