Search code examples
javascriptphpnode.jssocket.ioexpress.io

Running PHP frontend site with node.js page connecting both together


I have created a php site, doing the basic stuff reading from a sqlite database, logging in etc. This is currently running on xampp on port 80 and all is fine.

I have created another page which is ran on node.js it uses socket.io and express.io. Currently running on port 8080.

I want to click on a link on the php site that directs me to the node.js page which are both on different ports. I hope this is understandable, I have done alot of searching on the matter and cannot find a viable solution.


Solution

  • Maybe

    <a href="http://localhost:8080">Link</a>
    

    If i am wrong please specify your Problem