0

I'm running an application using nodejs and it's listening on port 8000, so my web url bar is ip:8000. I have an ajax call to a php file:

    $.ajax({
    url: './chat/store.php',
    type: 'post',
    data: {message: message},
    error: function () {
        console.log('Store not working...');
    }

but the php won't run because were running inside the node instance, so is there anything I can do to so that php runs while accessing the ip:8000 url?

1 Answer 1

1

Simple way: You could call the CMD version of php from inside node and return the value via node.

Hard way

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.